comparison cli-session.c @ 249:efbaf6b03837

added keyboard-interactive client support
author Matt Johnston <matt@ucc.asn.au>
date Tue, 20 Sep 2005 17:35:21 +0000
parents aad4b3f58556
children 3be7ae2e8dfa 740e782679be
comparison
equal deleted inserted replaced
248:bf64e666f99b 249:efbaf6b03837
61 {SSH_MSG_CHANNEL_EOF, recv_msg_channel_eof}, 61 {SSH_MSG_CHANNEL_EOF, recv_msg_channel_eof},
62 {SSH_MSG_CHANNEL_CLOSE, recv_msg_channel_close}, 62 {SSH_MSG_CHANNEL_CLOSE, recv_msg_channel_close},
63 {SSH_MSG_CHANNEL_OPEN_CONFIRMATION, recv_msg_channel_open_confirmation}, 63 {SSH_MSG_CHANNEL_OPEN_CONFIRMATION, recv_msg_channel_open_confirmation},
64 {SSH_MSG_CHANNEL_OPEN_FAILURE, recv_msg_channel_open_failure}, 64 {SSH_MSG_CHANNEL_OPEN_FAILURE, recv_msg_channel_open_failure},
65 {SSH_MSG_USERAUTH_BANNER, recv_msg_userauth_banner}, /* client */ 65 {SSH_MSG_USERAUTH_BANNER, recv_msg_userauth_banner}, /* client */
66 #ifdef ENABLE_CLI_PUBKEY_AUTH 66 {SSH_MSG_USERAUTH_SPECIFIC_60, recv_msg_userauth_specific_60}, /* client */
67 {SSH_MSG_USERAUTH_PK_OK, recv_msg_userauth_pk_ok}, /* client */
68 #endif
69 {0, 0} /* End */ 67 {0, 0} /* End */
70 }; 68 };
71 69
72 static const struct ChanType *cli_chantypes[] = { 70 static const struct ChanType *cli_chantypes[] = {
73 #ifdef ENABLE_CLI_REMOTETCPFWD 71 #ifdef ENABLE_CLI_REMOTETCPFWD
283 ses.sock = -1; 281 ses.sock = -1;
284 dropbear_exit("remote closed the connection"); 282 dropbear_exit("remote closed the connection");
285 } 283 }
286 284
287 /* Operates in-place turning dirty (untrusted potentially containing control 285 /* Operates in-place turning dirty (untrusted potentially containing control
288 * characters) text into clean text. */ 286 * characters) text into clean text.
287 * Note: this is safe only with ascii - other charsets could have problems. */
289 void cleantext(unsigned char* dirtytext) { 288 void cleantext(unsigned char* dirtytext) {
290 289
291 unsigned int i, j; 290 unsigned int i, j;
292 unsigned char c; 291 unsigned char c;
293 292