Home
last modified time | relevance | path

Searched refs:pkalg (Results 1 – 5 of 5) sorted by relevance

/freebsd-13.1/crypto/openssh/
H A Dauth2-hostbased.c65 char *pkalg, *cuser, *chost; in userauth_hostbased() local
71 if ((r = sshpkt_get_cstring(ssh, &pkalg, &alen)) != 0 || in userauth_hostbased()
79 cuser, chost, pkalg, slen); in userauth_hostbased()
84 pktype = sshkey_type_from_name(pkalg); in userauth_hostbased()
88 pkalg); in userauth_hostbased()
96 error_f("cannot decode key: %s", pkalg); in userauth_hostbased()
110 if (match_pattern_list(pkalg, options.hostbased_accepted_algos, 0) != 1) { in userauth_hostbased()
136 (r = sshbuf_put_string(b, pkalg, alen)) != 0 || in userauth_hostbased()
153 sshbuf_ptr(b), sshbuf_len(b), pkalg, ssh->compat, NULL)) == 0) in userauth_hostbased()
161 free(pkalg); in userauth_hostbased()
H A Dauth2-pubkey.c104 (r = sshpkt_get_cstring(ssh, &pkalg, NULL)) != 0 || in userauth_pubkey()
118 have_sig ? "attempting" : "querying", pkalg, keystring); in userauth_pubkey()
123 pktype = sshkey_type_from_name(pkalg); in userauth_pubkey()
126 verbose_f("unsupported public key algorithm: %s", pkalg); in userauth_pubkey()
134 error_f("cannot decode key: %s", pkalg); in userauth_pubkey()
169 debug3_f("have %s signature for %s%s%s", pkalg, key_s, in userauth_pubkey()
197 (r = sshbuf_put_cstring(b, pkalg)) != 0 || in userauth_pubkey()
208 (ssh->compat & SSH_BUG_SIGTYPE) == 0 ? pkalg : NULL, in userauth_pubkey()
249 debug_f("test pkalg %s pkblob %s%s%s", pkalg, key_s, in userauth_pubkey()
270 (r = sshpkt_put_cstring(ssh, pkalg)) != 0 || in userauth_pubkey()
[all …]
H A Dssh-keysign.c73 char *pkalg, *luser; in valid_request() local
113 if ((r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || in valid_request()
117 pktype = sshkey_type_from_name(pkalg); in valid_request()
125 free(pkalg); in valid_request()
H A Dssh-agent.c324 char *user = NULL, *service = NULL, *method = NULL, *pkalg = NULL; in parse_userauth_request() local
348 (r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || /* alg */ in parse_userauth_request()
355 sshkey_type_from_name(pkalg) != expected_key->type) { in parse_userauth_request()
384 free(pkalg); in parse_userauth_request()
H A Dsshconnect2.c708 char *pkalg = NULL, *fp = NULL, *ident = NULL; in input_userauth_pk_ok() local
715 if ((r = sshpkt_get_cstring(ssh, &pkalg, NULL)) != 0 || in input_userauth_pk_ok()
720 if ((pktype = sshkey_type_from_name(pkalg)) == KEY_UNSPEC) { in input_userauth_pk_ok()
721 debug_f("server sent unknown pkalg %s", pkalg); in input_userauth_pk_ok()
725 debug_r(r, "no key from blob. pkalg %s", pkalg); in input_userauth_pk_ok()
761 free(pkalg); in input_userauth_pk_ok()