Home
last modified time | relevance | path

Searched refs:cli_opts (Results 1 – 11 of 11) sorted by relevance

/external/dropbear/
Dcli-runopts.c33 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 …]
Dcli-main.c54 TRACE(("user='%s' host='%s' port='%s'", cli_opts.username,
55 cli_opts.remotehost, cli_opts.remoteport))
61 sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport,
69 len = strlen(cli_opts.remotehost);
73 cli_opts.remotehost, cli_opts.remoteport);
92 cli_opts.username, cli_opts.remotehost,
93 cli_opts.remoteport, format);
112 fprintf(stderr, "%s: %s\n", cli_opts.progname, printbuf);
Dcli-tcpfwd.c67 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 …]
Dcli-authpubkey.c45 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()
Dcli-session.c216 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()
Dcli-kex.c122 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()
Dcli-authpasswd.c125 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()
Dcli-chansession.c323 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()
Dcli-authinteract.c146 buf_putstring(ses.writepayload, cli_opts.username, in cli_auth_interactive()
147 strlen(cli_opts.username)); in cli_auth_interactive()
Dcli-auth.c49 buf_putstring(ses.writepayload, cli_opts.username, in cli_auth_getmethods()
50 strlen(cli_opts.username)); in cli_auth_getmethods()
Drunopts.h121 extern cli_runopts cli_opts;