Home
last modified time | relevance | path

Searched refs:cli_ses (Results 1 – 8 of 8) sorted by relevance

/external/dropbear/
Dcli-session.c44 struct clientsession cli_ses; /* GLOBAL */ variable
106 cli_ses.state = STATE_NOTHING; in cli_session_init()
107 cli_ses.kex_state = KEX_NOTHING; in cli_session_init()
109 cli_ses.tty_raw_mode = 0; in cli_session_init()
110 cli_ses.winchange = 0; in cli_session_init()
114 cli_ses.stdincopy = dup(STDIN_FILENO); in cli_session_init()
115 cli_ses.stdinflags = fcntl(STDIN_FILENO, F_GETFL, 0); in cli_session_init()
116 cli_ses.stdoutcopy = dup(STDOUT_FILENO); in cli_session_init()
117 cli_ses.stdoutflags = fcntl(STDOUT_FILENO, F_GETFL, 0); in cli_session_init()
118 cli_ses.stderrcopy = dup(STDERR_FILENO); in cli_session_init()
[all …]
Dcli-auth.c109 if (cli_ses.lastauthtype == AUTH_TYPE_PUBKEY) { in recv_msg_userauth_specific_60()
116 if (cli_ses.lastauthtype == AUTH_TYPE_INTERACT) { in recv_msg_userauth_specific_60()
123 if (cli_ses.lastauthtype == AUTH_TYPE_PASSWORD) { in recv_msg_userauth_specific_60()
147 if (cli_ses.state != USERAUTH_REQ_SENT) { in recv_msg_userauth_failure()
155 if (cli_ses.lastauthtype == AUTH_TYPE_PUBKEY) { in recv_msg_userauth_failure()
164 if (cli_ses.lastauthtype == AUTH_TYPE_INTERACT in recv_msg_userauth_failure()
165 && !cli_ses.interact_request_received) { in recv_msg_userauth_failure()
167 cli_ses.auth_interact_failed = 1; in recv_msg_userauth_failure()
171 cli_ses.lastauthtype = AUTH_TYPE_NONE; in recv_msg_userauth_failure()
225 cli_ses.state = USERAUTH_FAIL_RCVD; in recv_msg_userauth_failure()
[all …]
Dcli-kex.c46 cli_ses.dh_e = (mp_int*)m_malloc(sizeof(mp_int)); in send_msg_kexdh_init()
47 cli_ses.dh_x = (mp_int*)m_malloc(sizeof(mp_int)); in send_msg_kexdh_init()
48 m_mp_init_multi(cli_ses.dh_e, cli_ses.dh_x, NULL); in send_msg_kexdh_init()
50 gen_kexdh_vals(cli_ses.dh_e, cli_ses.dh_x); in send_msg_kexdh_init()
54 buf_putmpint(ses.writepayload, cli_ses.dh_e); in send_msg_kexdh_init()
70 if (cli_ses.kex_state != KEXDH_INIT_SENT) { in recv_msg_kexdh_reply()
96 kexdh_comb_key(cli_ses.dh_e, cli_ses.dh_x, &dh_f, hostkey); in recv_msg_kexdh_reply()
98 mp_clear_multi(cli_ses.dh_e, cli_ses.dh_x, NULL); in recv_msg_kexdh_reply()
99 m_free(cli_ses.dh_e); in recv_msg_kexdh_reply()
100 m_free(cli_ses.dh_x); in recv_msg_kexdh_reply()
Dcli-chansession.c68 cli_ses.retval = buf_getint(ses.payload); in cli_chansessreq()
69 TRACE(("got exit-status of '%d'", cli_ses.retval)) in cli_chansessreq()
114 if (cli_ses.tty_raw_mode == 1) { in cli_tty_setup()
124 cli_ses.saved_tio = tio; in cli_tty_setup()
142 cli_ses.tty_raw_mode = 1; in cli_tty_setup()
150 if (cli_ses.tty_raw_mode == 0) { in cli_tty_cleanup()
155 if (tcsetattr(STDIN_FILENO, TCSADRAIN, &cli_ses.saved_tio) == -1) { in cli_tty_cleanup()
158 cli_ses.tty_raw_mode = 0; in cli_tty_cleanup()
260 cli_ses.winchange = 1; in sigwinch_handler()
281 cli_ses.winchange = 0; in cli_chansess_winchange()
Dcli-service.c59 if (cli_ses.state == SERVICE_AUTH_REQ_SENT in recv_msg_service_accept()
63 cli_ses.state = SERVICE_AUTH_ACCEPT_RCVD; in recv_msg_service_accept()
70 if (cli_ses.state == SERVICE_CONN_REQ_SENT in recv_msg_service_accept()
78 cli_ses.state = SERVICE_CONN_ACCEPT_RCVD; in recv_msg_service_accept()
Dcli-authpubkey.c49 if (keyitem == cli_ses.lastprivkey) { in cli_pubkeyfail()
55 sign_key_free(cli_ses.lastprivkey->key); /* It won't be used again */ in cli_pubkeyfail()
56 m_free(cli_ses.lastprivkey); in cli_pubkeyfail()
180 cli_ses.lastprivkey = cli_opts.privkeys; in cli_auth_pubkey()
Dcli-authinteract.c80 cli_ses.interact_request_received = 1; in recv_msg_userauth_info_request()
164 cli_ses.interact_request_received = 0; in cli_auth_interactive()
Dsession.h253 extern struct clientsession cli_ses;