Lines Matching defs:authctxt
75 userauth_pubkey(Authctxt *authctxt)
85 if (!authctxt->valid) {
126 if (auth2_userkey_already_used(authctxt, key)) {
148 xasprintf(&userstyle, "%s%s%s", authctxt->user,
149 authctxt->style ? ":" : "",
150 authctxt->style ? authctxt->style : "");
156 authctxt->service);
168 pubkey_auth_info(authctxt, key, NULL);
172 if (PRIVSEP(user_key_allowed(authctxt->pw, key)) &&
177 auth2_record_userkey(authctxt, key);
194 if (PRIVSEP(user_key_allowed(authctxt->pw, key))) {
200 authctxt->postponed = 1;
215 pubkey_auth_info(Authctxt *authctxt, const Key *key, const char *fmt, ...)
233 auth_info(authctxt, "%s ID %s (serial %llu) CA %s %s%s%s",
243 auth_info(authctxt, "%s %s%s%s", key_type(key),
708 auth2_record_userkey(Authctxt *authctxt, struct sshkey *key)
712 if (authctxt->nprev_userkeys >= INT_MAX ||
713 (tmp = reallocarray(authctxt->prev_userkeys,
714 authctxt->nprev_userkeys + 1, sizeof(*tmp))) == NULL)
716 authctxt->prev_userkeys = tmp;
717 authctxt->prev_userkeys[authctxt->nprev_userkeys] = key;
718 authctxt->nprev_userkeys++;
723 auth2_userkey_already_used(Authctxt *authctxt, struct sshkey *key)
727 for (i = 0; i < authctxt->nprev_userkeys; i++) {
728 if (sshkey_equal_public(key, authctxt->prev_userkeys[i])) {