Lines Matching defs:authctxt
78 userauth_pubkey(Authctxt *authctxt)
88 if (!authctxt->valid) {
130 if (auth2_userkey_already_used(authctxt, key)) {
154 xasprintf(&userstyle, "%s%s%s", authctxt->user,
155 authctxt->style ? ":" : "",
156 authctxt->style ? authctxt->style : "");
162 authctxt->service);
174 pubkey_auth_info(authctxt, key, NULL);
178 if (PRIVSEP(user_key_allowed(authctxt->pw, key, 1)) &&
183 auth2_record_userkey(authctxt, key);
201 if (PRIVSEP(user_key_allowed(authctxt->pw, key, 0))) {
207 authctxt->postponed = 1;
223 pubkey_auth_info(Authctxt *authctxt, const Key *key, const char *fmt, ...)
241 auth_info(authctxt, "%s ID %s (serial %llu) CA %s %s%s%s",
251 auth_info(authctxt, "%s %s%s%s", key_type(key),
1079 auth2_record_userkey(Authctxt *authctxt, struct sshkey *key)
1083 if (authctxt->nprev_userkeys >= INT_MAX ||
1084 (tmp = reallocarray(authctxt->prev_userkeys,
1085 authctxt->nprev_userkeys + 1, sizeof(*tmp))) == NULL)
1087 authctxt->prev_userkeys = tmp;
1088 authctxt->prev_userkeys[authctxt->nprev_userkeys] = key;
1089 authctxt->nprev_userkeys++;
1094 auth2_userkey_already_used(Authctxt *authctxt, struct sshkey *key)
1098 for (i = 0; i < authctxt->nprev_userkeys; i++) {
1099 if (sshkey_equal_public(key, authctxt->prev_userkeys[i])) {