Searched refs:cli_opts (Results 1 – 11 of 11) sorted by relevance
/external/dropbear/ |
D | cli-runopts.c | 33 cli_runopts cli_opts; /* GLOBAL */ variable 69 ,DROPBEAR_VERSION, cli_opts.progname); in printhelp() 89 cli_opts.progname = argv[0]; in cli_getopts() 90 cli_opts.remotehost = NULL; in cli_getopts() 91 cli_opts.remoteport = NULL; in cli_getopts() 92 cli_opts.username = NULL; in cli_getopts() 93 cli_opts.cmd = NULL; in cli_getopts() 94 cli_opts.no_cmd = 0; in cli_getopts() 95 cli_opts.backgrounded = 0; in cli_getopts() 96 cli_opts.wantpty = 9; /* 9 means "it hasn't been touched", gets set later */ in cli_getopts() [all …]
|
D | cli-main.c | 56 TRACE(("user='%s' host='%s' port='%s'", cli_opts.username, 57 cli_opts.remotehost, cli_opts.remoteport)) 63 sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, 71 len = strlen(cli_opts.remotehost); 75 cli_opts.remotehost, cli_opts.remoteport); 94 cli_opts.username, cli_opts.remotehost, 95 cli_opts.remoteport, format); 114 fprintf(stderr, "%s: %s\n", cli_opts.progname, printbuf);
|
D | cli-tcpfwd.c | 67 if (cli_opts.localfwds == NULL) { in setup_localtcp() 71 while (cli_opts.localfwds != NULL) { in setup_localtcp() 72 ret = cli_localtcp(cli_opts.localfwds->listenport, in setup_localtcp() 73 cli_opts.localfwds->connectaddr, in setup_localtcp() 74 cli_opts.localfwds->connectport); in setup_localtcp() 77 cli_opts.localfwds->listenport, in setup_localtcp() 78 cli_opts.localfwds->connectaddr, in setup_localtcp() 79 cli_opts.localfwds->connectport); in setup_localtcp() 82 cli_opts.localfwds = cli_opts.localfwds->next; in setup_localtcp() 152 if (cli_opts.remotefwds == NULL) { in setup_remotetcp() [all …]
|
D | cli-authpubkey.c | 45 previtem = &cli_opts.privkeys; in cli_pubkeyfail() 48 for (keyitem = cli_opts.privkeys; keyitem != NULL; keyitem = keyitem->next) { in cli_pubkeyfail() 83 for (keyitem = cli_opts.privkeys; keyitem != NULL; keyitem = keyitem->next) { in recv_msg_userauth_pk_ok() 141 buf_putstring(ses.writepayload, cli_opts.username, in send_msg_userauth_pubkey() 142 strlen(cli_opts.username)); in send_msg_userauth_pubkey() 176 if (cli_opts.privkeys != NULL) { in cli_auth_pubkey() 178 send_msg_userauth_pubkey(cli_opts.privkeys->key, in cli_auth_pubkey() 179 cli_opts.privkeys->type, 0); in cli_auth_pubkey() 180 cli_ses.lastprivkey = cli_opts.privkeys; in cli_auth_pubkey()
|
D | cli-session.c | 216 if (cli_opts.backgrounded) { in cli_sessionloop() 238 if (!cli_opts.no_cmd) { in cli_sessionloop() 246 if (ses.chancount < 1 && !cli_opts.no_cmd) { in cli_sessionloop() 286 fprintf(stderr, "Connection to %s@%s:%s closed.\n", cli_opts.username, in cli_finished() 287 cli_opts.remotehost, cli_opts.remoteport); in cli_finished()
|
D | cli-kex.c | 122 if (cli_opts.always_accept_key) { in ask_to_confirm() 124 cli_opts.remotehost, in ask_to_confirm() 130 cli_opts.remotehost, in ask_to_confirm() 228 hostlen = strlen(cli_opts.remotehost); in checkhostkey() 247 if (strncmp(cli_opts.remotehost, buf_getptr(line, hostlen), in checkhostkey() 287 cli_opts.remotehost, in checkhostkey() 302 if (!cli_opts.always_accept_key) { in checkhostkey()
|
D | cli-authpasswd.c | 125 cli_opts.username, cli_opts.remotehost); in cli_auth_password() 135 buf_putstring(ses.writepayload, cli_opts.username, in cli_auth_password() 136 strlen(cli_opts.username)); in cli_auth_password()
|
D | cli-chansession.c | 323 if (cli_opts.cmd) { in send_chansess_shell_req() 333 if (cli_opts.cmd) { in send_chansess_shell_req() 334 buf_putstring(ses.writepayload, cli_opts.cmd, strlen(cli_opts.cmd)); in send_chansess_shell_req() 355 if (cli_opts.wantpty) { in cli_initchansess() 361 if (cli_opts.wantpty) { in cli_initchansess()
|
D | cli-authinteract.c | 146 buf_putstring(ses.writepayload, cli_opts.username, in cli_auth_interactive() 147 strlen(cli_opts.username)); in cli_auth_interactive()
|
D | cli-auth.c | 49 buf_putstring(ses.writepayload, cli_opts.username, in cli_auth_getmethods() 50 strlen(cli_opts.username)); in cli_auth_getmethods()
|
D | runopts.h | 121 extern cli_runopts cli_opts;
|