/external/openssh/ |
H A D | auth-bsdauth.c | 45 bsdauth_init_ctx(Authctxt *authctxt) argument 47 return authctxt; 54 Authctxt *authctxt = ctx; local 57 if (authctxt->as != NULL) { 59 challenge = auth_getitem(authctxt->as, AUTHV_CHALLENGE); 61 auth_close(authctxt->as); 62 authctxt->as = NULL; 69 authctxt->style ? authctxt->style : "<default>"); 70 authctxt 93 Authctxt *authctxt = ctx; local 115 Authctxt *authctxt = ctx; local [all...] |
H A D | auth-krb5.c | 60 Authctxt *authctxt = (Authctxt *)context; local 63 if (authctxt->krb5_ctx == NULL) { 64 problem = krb5_init_context(&authctxt->krb5_ctx); 72 auth_krb5_password(Authctxt *authctxt, const char *password) argument 84 platform_client = platform_krb5_get_principal_name(authctxt->pw->pw_name); 85 client = platform_client ? platform_client : authctxt->pw->pw_name; 87 temporarily_use_uid(authctxt->pw); 89 problem = krb5_init(authctxt); 93 problem = krb5_parse_name(authctxt->krb5_ctx, client, 94 &authctxt 209 krb5_cleanup_proc(Authctxt *authctxt) argument [all...] |
H A D | auth-chall.c | 46 get_challenge(Authctxt *authctxt) argument 60 if ((authctxt->kbdintctxt = device->init_ctx(authctxt)) == NULL) 62 if (device->query(authctxt->kbdintctxt, &name, &info, 64 device->free_ctx(authctxt->kbdintctxt); 65 authctxt->kbdintctxt = NULL; 81 verify_response(Authctxt *authctxt, const char *response) argument 89 if (authctxt->kbdintctxt == NULL) 92 switch (device->respond(authctxt->kbdintctxt, 1, resp)) { 97 if ((device->query(authctxt 117 abandon_challenge_response(Authctxt *authctxt) argument [all...] |
H A D | auth1.c | 115 auth1_process_password(Authctxt *authctxt, char *info, size_t infolen) argument 131 authenticated = PRIVSEP(auth_password(authctxt, password)); 146 auth1_process_rsa(Authctxt *authctxt, char *info, size_t infolen) argument 156 authenticated = auth_rsa(authctxt, n); 164 auth1_process_rhosts_rsa(Authctxt *authctxt, char *info, size_t infolen) argument 192 authenticated = auth_rhosts_rsa(authctxt, client_user, 203 auth1_process_tis_challenge(Authctxt *authctxt, char *info, size_t infolen) argument 207 if ((challenge = get_challenge(authctxt)) == NULL) 222 auth1_process_tis_response(Authctxt *authctxt, char *info, size_t infolen) argument 230 authenticated = verify_response(authctxt, respons 242 do_authloop(Authctxt *authctxt) argument 393 do_authentication(Authctxt *authctxt) argument [all...] |
H A D | auth2.c | 168 * loop until authctxt->success == TRUE 171 do_authentication2(Authctxt *authctxt) argument 175 dispatch_run(DISPATCH_BLOCK, &authctxt->success, authctxt); 182 Authctxt *authctxt = ctxt; local 188 if (authctxt == NULL) 189 fatal("input_service_request: no authctxt"); 192 if (!authctxt->success) { 216 Authctxt *authctxt = ctxt; local 221 if (authctxt 293 userauth_finish(Authctxt *authctxt, int authenticated, char *method) argument [all...] |
H A D | auth2-gss.c | 60 userauth_gssapi(Authctxt *authctxt) argument 71 if (!authctxt->valid || authctxt->user == NULL) 105 authctxt->server_caused_failure = 1; 113 authctxt->server_caused_failure = 1; 117 authctxt->methoddata = (void *)ctxt; 129 authctxt->postponed = 1; 137 Authctxt *authctxt = ctxt; local 144 if (authctxt == NULL || (authctxt 191 Authctxt *authctxt = ctxt; local 231 Authctxt *authctxt = ctxt; local 260 Authctxt *authctxt = ctxt; local [all...] |
H A D | auth2-jpake.c | 82 userauth_jpake(Authctxt *authctxt) argument 90 if (authctxt->user != NULL) { 91 if (authctxt->jpake_ctx == NULL) 92 authctxt->jpake_ctx = jpake_new(); 94 authenticated = auth2_jpake_start(authctxt); 108 auth2_jpake_stop(Authctxt *authctxt) argument 114 if (authctxt->jpake_ctx != NULL) { 115 jpake_free(authctxt->jpake_ctx); 116 authctxt->jpake_ctx = NULL; 220 fake_salt_and_scheme(Authctxt *authctxt, cha argument 272 auth2_jpake_get_pwdata(Authctxt *authctxt, BIGNUM **s, char **hash_scheme, char **salt) argument 372 auth2_jpake_start(Authctxt *authctxt) argument 425 Authctxt *authctxt = ctxt; local 483 Authctxt *authctxt = ctxt; local 533 Authctxt *authctxt = ctxt; local [all...] |
H A D | auth-skey.c | 46 skey_init_ctx(Authctxt *authctxt) argument 48 return authctxt; 55 Authctxt *authctxt = ctx; local 59 if (_compat_skeychallenge(&skey, authctxt->user, challenge, 77 Authctxt *authctxt = ctx; local 79 if (authctxt->valid && 81 skey_haskey(authctxt->pw->pw_name) == 0 && 82 skey_passcheck(authctxt->pw->pw_name, responses[0]) != -1)
|
H A D | auth2-chall.c | 186 * try challenge-response, set authctxt->postponed if we have to 190 auth2_challenge(Authctxt *authctxt, char *devs) argument 193 authctxt->user ? authctxt->user : "<nouser>", 196 if (authctxt->user == NULL || !devs) 198 if (authctxt->kbdintctxt == NULL) 199 authctxt->kbdintctxt = kbdint_alloc(devs); 200 return auth2_challenge_start(authctxt); 205 auth2_challenge_stop(Authctxt *authctxt) argument 209 if (authctxt 217 auth2_challenge_start(Authctxt *authctxt) argument 247 send_userauth_info_request(Authctxt *authctxt) argument 282 Authctxt *authctxt = ctxt; local [all...] |
H A D | auth-passwd.c | 81 auth_password(Authctxt *authctxt, const char *password) argument 83 struct passwd * pw = authctxt->pw; 84 int result, ok = authctxt->valid; 98 int ret = auth_krb5_password(authctxt, password); 116 return (sshpam_auth_passwd(authctxt, password) && ok); 121 if (auth_shadow_pwexpired(authctxt)) 122 authctxt->force_pwchange = 1; 125 result = sys_auth_passwd(authctxt, password); 126 if (authctxt->force_pwchange) 133 warn_expiry(Authctxt *authctxt, auth_session_ argument 167 sys_auth_passwd(Authctxt *authctxt, const char *password) argument 192 sys_auth_passwd(Authctxt *authctxt, const char *password) argument [all...] |
H A D | auth2-kbdint.c | 45 userauth_kbdint(Authctxt *authctxt) argument 57 authenticated = auth2_challenge(authctxt, devs);
|
H A D | auth2-none.c | 60 userauth_none(Authctxt *authctxt) argument 67 return (PRIVSEP(auth_password(authctxt, "")));
|
H A D | sshconnect2.c | 274 int (*userauth)(Authctxt *authctxt); 275 void (*cleanup)(Authctxt *authctxt); 302 int userauth_gssapi(Authctxt *authctxt); 368 Authctxt authctxt; local 396 memset(&authctxt, 0, sizeof(authctxt)); 397 pubkey_prepare(&authctxt); 398 authctxt.server_user = server_user; 399 authctxt.local_user = local_user; 400 authctxt 427 userauth(Authctxt *authctxt, char *authlist) argument 498 Authctxt *authctxt = ctxt; local 518 Authctxt *authctxt = ctxt; local 531 Authctxt *authctxt = ctxt; local 553 Authctxt *authctxt = ctxt; local 622 userauth_gssapi(Authctxt *authctxt) argument 681 Authctxt *authctxt = ctxt; local 736 Authctxt *authctxt = ctxt; local 776 Authctxt *authctxt = ctxt; local 804 Authctxt *authctxt = ctxt; local 852 userauth_none(Authctxt *authctxt) argument 864 userauth_passwd(Authctxt *authctxt) argument 905 Authctxt *authctxt = ctxt; local 984 jpake_password_to_secret(Authctxt *authctxt, const char *crypt_scheme, const char *salt) argument 1030 Authctxt *authctxt = ctxt; local 1098 Authctxt *authctxt = ctxt; local 1145 Authctxt *authctxt = ctxt; local 1197 sign_and_send_pubkey(Authctxt *authctxt, Identity *id) argument 1285 send_pubkey_test(Authctxt *authctxt, Identity *id) argument 1360 pubkey_prepare(Authctxt *authctxt) argument 1431 pubkey_cleanup(Authctxt *authctxt) argument 1449 userauth_pubkey(Authctxt *authctxt) argument 1489 userauth_kbdint(Authctxt *authctxt) argument 1522 Authctxt *authctxt = ctxt; local 1651 userauth_hostbased(Authctxt *authctxt) argument 1745 userauth_jpake(Authctxt *authctxt) argument 1805 userauth_jpake_cleanup(Authctxt *authctxt) argument [all...] |
H A D | auth-rh-rsa.c | 66 auth_rhosts_rsa(Authctxt *authctxt, char *cuser, Key *client_host_key) argument 69 struct passwd *pw = authctxt->pw; 74 if (!authctxt->valid || client_host_key == NULL ||
|
H A D | auth2-passwd.c | 50 userauth_passwd(Authctxt *authctxt) argument 71 else if (PRIVSEP(auth_password(authctxt, password)) == 1)
|
H A D | auth-sia.c | 53 sys_auth_passwd(Authctxt *authctxt, const char *pass) argument 61 if (!authctxt->user || pass == NULL || pass[0] == '\0') 64 if (sia_ses_init(&ent, saved_argc, saved_argv, host, authctxt->user, 70 authctxt->user, host);
|
H A D | auth.h | 86 int (*userauth)(Authctxt *authctxt); 124 int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *); 125 int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt); 126 int auth_krb5_password(Authctxt *authctxt, const char *password); 127 void krb5_cleanup_proc(Authctxt *authctxt);
|
H A D | auth2-hostbased.c | 57 userauth_hostbased(Authctxt *authctxt) argument 67 if (!authctxt->valid) { 104 authctxt->service; 109 buffer_put_cstring(&b, authctxt->user); 121 if (PRIVSEP(hostbased_key_allowed(authctxt->pw, cuser, chost, key)) &&
|
H A D | monitor.c | 192 static Authctxt *authctxt; variable 363 authctxt = _authctxt; 364 memset(authctxt, 0, sizeof(*authctxt)); 366 authctxt->loginmsg = &loginmsg; 388 if (authctxt->pw->pw_uid == 0 && 406 auth_log(authctxt, authenticated, auth_method, 409 authctxt->failures++; 414 if (authctxt->jpake_ctx != NULL) { 415 jpake_free(authctxt [all...] |
H A D | session.h | 36 Authctxt *authctxt; member in struct:Session
|
H A D | auth.c | 254 auth_log(Authctxt *authctxt, int authenticated, char *method, char *info) argument 259 if (use_privsep && !mm_is_monitor() && !authctxt->postponed) 264 !authctxt->valid || 265 authctxt->failures >= options.max_authtries / 2 || 269 if (authctxt->postponed) 277 authctxt->valid ? "" : "invalid user ", 278 authctxt->user, 284 if (authenticated == 0 && !authctxt->postponed && 288 record_failed_login(authctxt->user, 292 sys_auth_record_login(authctxt [all...] |
H A D | auth2-pubkey.c | 68 userauth_pubkey(Authctxt *authctxt) argument 78 if (!authctxt->valid) { 124 buffer_put_cstring(&b, authctxt->user); 128 authctxt->service); 142 if (PRIVSEP(user_key_allowed(authctxt->pw, key)) && 160 if (PRIVSEP(user_key_allowed(authctxt->pw, key))) { 166 authctxt->postponed = 1;
|
H A D | session.c | 271 do_authenticated(Authctxt *authctxt) argument 273 setproctitle("%s", authctxt->pw->pw_name); 282 do_authenticated2(authctxt); 284 do_authenticated1(authctxt); 286 do_cleanup(authctxt); 296 do_authenticated1(Authctxt *authctxt) argument 309 s->authctxt = authctxt; 310 s->pw = authctxt->pw; 878 if (options.use_pam && !use_privsep && s->authctxt 1918 session_open(Authctxt *authctxt, int chanid) argument 2683 do_authenticated2(Authctxt *authctxt) argument 2689 do_cleanup(Authctxt *authctxt) argument [all...] |
H A D | auth-pam.c | 280 fatal("%s: PAM authctxt not initialized", __func__); 461 fatal("%s: PAM authctxt not initialized", __func__); 621 sshpam_init(Authctxt *authctxt) argument 624 const char *pam_rhost, *pam_user, *user = authctxt->user; 639 sshpam_authctxt = authctxt; 672 sshpam_init_ctx(Authctxt *authctxt) argument 686 if (sshpam_init(authctxt) == -1) { 884 start_pam(Authctxt *authctxt) argument 889 if (sshpam_init(authctxt) == -1) 1181 sshpam_auth_passwd(Authctxt *authctxt, cons argument [all...] |
/external/openssh/openbsd-compat/ |
H A D | port-uw.c | 53 sys_auth_passwd(Authctxt *authctxt, const char *password) argument 55 struct passwd *pw = authctxt->pw; 59 /* Just use the supplied fake password if authctxt is invalid */ 60 char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; 83 if (authctxt->valid)
|