Home
last modified time | relevance | path

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

/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dauth2-hostbased.c67 char *pkalg, *cuser, *chost; in userauth_hostbased() local
73 if ((r = sshpkt_get_cstring(ssh, &pkalg, &alen)) != 0 || in userauth_hostbased()
81 cuser, chost, pkalg, slen); in userauth_hostbased()
86 pktype = sshkey_type_from_name(pkalg); in userauth_hostbased()
90 pkalg); in userauth_hostbased()
98 error_f("cannot decode key: %s", pkalg); in userauth_hostbased()
106 if (match_pattern_list(pkalg, options.hostbased_accepted_algos, 0) != 1) { in userauth_hostbased()
108 "HostbasedAcceptedAlgorithms", pkalg); in userauth_hostbased()
137 (r = sshbuf_put_string(b, pkalg, alen)) != 0 || in userauth_hostbased()
154 sshbuf_ptr(b), sshbuf_len(b), pkalg, ssh->compat, NULL) == 0) in userauth_hostbased()
[all …]
H A Dssh-keysign.c72 char *pkalg, *luser; in valid_request() local
117 if ((r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || in valid_request()
121 pktype = sshkey_type_from_name(pkalg); in valid_request()
163 *pkalgp = pkalg; in valid_request()
164 pkalg = NULL; in valid_request()
168 free(pkalg); in valid_request()
184 char *host, *fp, *pkalg; in main() local
283 if (valid_request(pw, host, &key, &pkalg, data, dlen) < 0) in main()
304 pkalg, NULL, NULL, 0)) != 0) in main()
H A Dauth2-pubkey.c101 char *pkalg = NULL, *userstyle = NULL, *key_s = NULL, *ca_s = NULL; in userauth_pubkey() local
112 (r = sshpkt_get_cstring(ssh, &pkalg, NULL)) != 0 || in userauth_pubkey()
139 have_sig ? "attempting" : "querying", pkalg, keystring); in userauth_pubkey()
144 pktype = sshkey_type_from_name(pkalg); in userauth_pubkey()
147 verbose_f("unsupported public key algorithm: %s", pkalg); in userauth_pubkey()
155 error_f("cannot decode key: %s", pkalg); in userauth_pubkey()
167 if (match_pattern_list(pkalg, options.pubkey_accepted_algos, 0) != 1) { in userauth_pubkey()
169 "PubkeyAcceptedAlgorithms", pkalg); in userauth_pubkey()
190 method, pkalg, key_s, in userauth_pubkey()
218 (r = sshbuf_put_cstring(b, pkalg)) != 0 || in userauth_pubkey()
[all …]
H A Dssh-agent.c686 char *user = NULL, *service = NULL, *method = NULL, *pkalg = NULL; in parse_userauth_request() local
712 (r = sshbuf_get_cstring(b, &pkalg, NULL)) != 0 || /* alg */ in parse_userauth_request()
719 sshkey_type_from_name(pkalg) != expected_key->type) { in parse_userauth_request()
755 free(pkalg); in parse_userauth_request()
H A DPROTOCOL439 string pkalg