| 240 |
_exit(1); |
_exit(1); |
| 241 |
} |
} |
| 242 |
|
|
| 243 |
snprintf(buf, sizeof(buf), "Hello, welcome to the Sample SSH proxy.\r\nPlease select your destination: "); |
snprintf(buf, sizeof(buf), "Hello, welcome to the Sample SSH proxy.\nPlease select your destination: "); |
| 244 |
ssh_channel_write(SSH_channel, buf, (uint32_t)strlen(buf)); |
ssh_channel_write(SSH_channel, buf, (uint32_t)strlen(buf)); |
| 245 |
do |
do |
| 246 |
{ |
{ |
| 265 |
_exit(1); |
_exit(1); |
| 266 |
} |
} |
| 267 |
} while (i > 0); |
} while (i > 0); |
| 268 |
snprintf(buf, sizeof(buf), "Trying to connect to \"%s\"\r\n", host); |
snprintf(buf, sizeof(buf), "Trying to connect to \"%s\"\n", host); |
| 269 |
ssh_channel_write(SSH_channel, buf, (uint32_t)strlen(buf)); |
ssh_channel_write(SSH_channel, buf, (uint32_t)strlen(buf)); |
| 270 |
log_common("%s", buf); |
log_common("%s", buf); |
| 271 |
|
|