Home
last modified time | relevance | path

Searched refs:authstate (Results 1 – 12 of 12) sorted by relevance

/external/dropbear/
Dsvr-auth.c44 ses.authstate.failcount = 0; in svr_authinitialise()
54 memset(&ses.authstate, 0, sizeof(ses.authstate)); in authclear()
56 ses.authstate.authtypes |= AUTH_TYPE_PUBKEY; in authclear()
60 ses.authstate.authtypes |= AUTH_TYPE_PASSWORD; in authclear()
100 if (ses.authstate.authdone == 1) { in recv_msg_userauth_request()
146 !(svr_opts.norootpass && ses.authstate.pw->pw_uid == 0) ) { in recv_msg_userauth_request()
159 !(svr_opts.norootpass && ses.authstate.pw->pw_uid == 0) ) { in recv_msg_userauth_request()
204 if (ses.authstate.username == NULL || in checkusername()
205 strcmp(username, ses.authstate.username) != 0) { in checkusername()
207 if (ses.authstate.username != NULL) { in checkusername()
[all …]
Dcli-auth.c37 memset(&ses.authstate, 0, sizeof(ses.authstate)); in cli_authinitialise()
67 if (ses.authstate.authdone) { in recv_msg_userauth_banner()
180 ses.authstate.failcount++; in recv_msg_userauth_failure()
185 ses.authstate.authdone=0; in recv_msg_userauth_failure()
186 ses.authstate.authtypes=0; in recv_msg_userauth_failure()
202 ses.authstate.authtypes |= AUTH_TYPE_PUBKEY; in recv_msg_userauth_failure()
208 ses.authstate.authtypes |= AUTH_TYPE_INTERACT; in recv_msg_userauth_failure()
214 ses.authstate.authtypes |= AUTH_TYPE_PASSWORD; in recv_msg_userauth_failure()
232 ses.authstate.authdone = 1; in recv_msg_userauth_success()
247 if (ses.authstate.authtypes & AUTH_TYPE_PUBKEY) { in cli_auth_try()
[all …]
Dsvr-authpubkey.c108 ses.authstate.printableuser, fp, svr_ses.addrstring); in svr_auth_pubkey()
113 ses.authstate.printableuser, fp, svr_ses.addrstring); in svr_auth_pubkey()
169 ses.authstate.printableuser, svr_ses.addrstring); in checkpubkey()
181 len = strlen(ses.authstate.pw->pw_dir); in checkpubkey()
186 ses.authstate.pw->pw_dir); in checkpubkey()
269 if (ses.authstate.pw->pw_dir == NULL) { in checkpubkeyperms()
273 if ((len = strlen(ses.authstate.pw->pw_dir)) == 0) { in checkpubkeyperms()
280 strncpy(filename, ses.authstate.pw->pw_dir, len+1); in checkpubkeyperms()
323 if (filestat.st_uid != ses.authstate.pw->pw_uid in checkfileperm()
334 if (!ses.authstate.perm_warn) { in checkfileperm()
[all …]
Dsvr-authpasswd.c49 passwdcrypt = ses.authstate.pw->pw_passwd; in svr_auth_password()
52 spasswd = getspnam(ses.authstate.printableuser); in svr_auth_password()
68 ses.authstate.printableuser); in svr_auth_password()
92 ses.authstate.printableuser, in svr_auth_password()
98 ses.authstate.printableuser, in svr_auth_password()
Dsvr-session.c135 } else if (ses.authstate.authdone) { in svr_dropbear_exit()
139 ses.authstate.printableuser, format); in svr_dropbear_exit()
140 } else if (ses.authstate.printableuser) { in svr_dropbear_exit()
144 ses.authstate.printableuser, ses.authstate.failcount, format); in svr_dropbear_exit()
Dsvr-chansession.c275 li = login_alloc_entry(chansess->pid, ses.authstate.username, in closechansess()
550 pty_setowner(ses.authstate.pw, chansess->tty); in sessionpty()
607 ses.authstate.printableuser, chansess->cmd); in sessioncommand()
610 ses.authstate.printableuser); in sessioncommand()
786 li= login_alloc_entry(getpid(), ses.authstate.username, in ptycommand()
798 len = strlen(ses.authstate.pw->pw_dir) + 11; in ptycommand()
801 snprintf(hushpath, len, "%s/hushlogin", ses.authstate.pw->pw_dir); in ptycommand()
911 if ((setgid(ses.authstate.pw->pw_gid) < 0) || in execchild()
912 (initgroups(ses.authstate.pw->pw_name, in execchild()
913 ses.authstate.pw->pw_gid) < 0)) { in execchild()
[all …]
Dsvr-authpam.c198 userData.user = ses.authstate.printableuser; in svr_auth_pam()
224 ses.authstate.printableuser, in svr_auth_pam()
235 ses.authstate.printableuser, in svr_auth_pam()
243 ses.authstate.printableuser, in svr_auth_pam()
Dsvr-agentfwd.c153 if ((setegid(ses.authstate.pw->pw_gid)) < 0 || in agentcleanup()
154 (seteuid(ses.authstate.pw->pw_uid)) < 0) { in agentcleanup()
216 if ((setegid(ses.authstate.pw->pw_gid)) < 0 || in bindagent()
217 (seteuid(ses.authstate.pw->pw_uid)) < 0) { in bindagent()
Dsvr-service.c59 if (ses.authstate.authdone != 1) { in recv_msg_service_request()
Dcli-service.c74 if (ses.authstate.authdone != 1) { in recv_msg_service_accept()
Dprocess-packet.c100 if ( !ses.authstate.authdone && type > MAX_UNAUTH_PACKET_TYPE ) { in process_packet()
Dsession.h151 struct AuthState authstate; /* Common amongst client and server, since most member