Home
last modified time | relevance | path

Searched refs:pktype (Results 1 – 6 of 6) sorted by relevance

/freebsd/crypto/openssh/
H A Dauth2-hostbased.c68 int r, pktype, authenticated = 0; in userauth_hostbased() local
84 pktype = sshkey_type_from_name(pkalg); in userauth_hostbased()
85 if (pktype == KEY_UNSPEC) { in userauth_hostbased()
99 if (key->type != pktype) { in userauth_hostbased()
101 "(received %d, expected %d)", key->type, pktype); in userauth_hostbased()
H A Dssh-keysign.c74 int r, pktype, fail; in valid_request() local
122 pktype = sshkey_type_from_name(pkalg); in valid_request()
123 if (pktype == KEY_UNSPEC) in valid_request()
128 } else if (key->type != pktype) in valid_request()
H A Dauth2-pubkey.c98 int hostbound, r, pktype; in userauth_pubkey() local
138 pktype = sshkey_type_from_name(pkalg); in userauth_pubkey()
139 if (pktype == KEY_UNSPEC) { in userauth_pubkey()
152 if (key->type != pktype) { in userauth_pubkey()
154 "(received %d, expected %d)", key->type, pktype); in userauth_pubkey()
H A Dsshconnect2.c686 int pktype, found = 0, sent = 0; in input_userauth_pk_ok() local
700 if ((pktype = sshkey_type_from_name(pkalg)) == KEY_UNSPEC) { in input_userauth_pk_ok()
709 if (key->type != pktype) { in input_userauth_pk_ok()
712 key->type, pktype); in input_userauth_pk_ok()
/freebsd/crypto/openssl/ssl/statem/
H A Dstatem_lib.c368 int pktype = lu->sig; in tls_construct_cert_verify() local
370 if (pktype == NID_id_GostR3410_2001 in tls_construct_cert_verify()
371 || pktype == NID_id_GostR3410_2012_256 in tls_construct_cert_verify()
372 || pktype == NID_id_GostR3410_2012_512) in tls_construct_cert_verify()
505 int pktype = EVP_PKEY_get_id(pkey); in tls_process_cert_verify() local
506 if (pktype == NID_id_GostR3410_2001 in tls_process_cert_verify()
507 || pktype == NID_id_GostR3410_2012_256 in tls_process_cert_verify()
508 || pktype == NID_id_GostR3410_2012_512) { in tls_process_cert_verify()
/freebsd/crypto/openssl/crypto/evp/
H A Dp_lib.c753 int pktype; in EVP_PKEY_assign() local
755 pktype = EVP_PKEY_type(type); in EVP_PKEY_assign()
756 if ((key != NULL) && (pktype == EVP_PKEY_EC || pktype == EVP_PKEY_SM2)) { in EVP_PKEY_assign()
766 if (curve == NID_sm2 && pktype == EVP_PKEY_EC) in EVP_PKEY_assign()
768 else if(curve != NID_sm2 && pktype == EVP_PKEY_SM2) in EVP_PKEY_assign()