Lines Matching defs:authctxt
239 Authctxt *authctxt = xmalloc(sizeof(*authctxt));
240 memset(authctxt, 0, sizeof(*authctxt));
241 return authctxt;
245 auth_log(Authctxt *authctxt, int authenticated, char *method, char *info)
250 if (authctxt == NULL)
254 if (authenticated == 1 || !authctxt->valid)
256 else if (authctxt->failures >= AUTH_FAIL_LOG ||
257 authctxt->attempt >= options.max_auth_tries_log ||
258 authctxt->init_attempt >= options.max_init_auth_tries_log)
261 if (authctxt->method) {
263 if (authctxt->method->postponed)
265 if (authctxt->method->abandoned)
267 if (authctxt->method->authenticated) {
268 if (userauth_check_partial_failure(authctxt))
280 if (authctxt->user == NULL || *authctxt->user == '\0')
282 else if (!authctxt->valid)
285 user_str = authctxt->user;
297 loginfailed(authctxt->user,
308 Authctxt *authctxt = (Authctxt *)ctxt;
314 * authctxt and authctxt->valid need to be checked before either of
315 * the authctxt->pam* variables.
317 * authctxt-> authctxt->
318 * authctxt valid authctxt->pam pam_retval PAM rval
323 * OK one (1) NULL !PAM_SUCCESS authctxt->
325 * OK one (1) VALID ANY authctxt->
330 if (authctxt == NULL) {
336 if (authctxt->valid == 0) {
338 } else if (authctxt->pam == NULL) {
339 if (authctxt->pam_retval == PAM_SUCCESS) {
341 authctxt->user);
343 audit_sshd_login_failure(&ah, authctxt->pam_retval,
344 authctxt->user);
347 audit_sshd_login_failure(&ah, AUTHPAM_ERROR(authctxt,
348 PAM_PERM_DENIED), authctxt->user);