Lines Matching refs:pkey
151 STACK_OF(EVP_PKEY) **pkey, STACK_OF(X509) **certs);
209 int keyid_len, char *name_str, EVP_PKEY **pkey, X509 **cert, in sunw_PKCS12_parse() argument
222 if (pkey) in sunw_PKCS12_parse()
223 *pkey = NULL; in sunw_PKCS12_parse()
265 name_str, pkey, cert, ca); in sunw_PKCS12_parse()
273 if (pkey && *pkey) { in sunw_PKCS12_parse()
274 sunw_evp_pkey_free(*pkey); in sunw_PKCS12_parse()
320 int kstr_len, char *name_str, EVP_PKEY **pkey, X509 **cert, in parse_pkcs12() argument
363 work_kl, work_cl, pkey, cert); in parse_pkcs12()
381 pkey, cert); in parse_pkcs12()
393 retval = get_key_cert(0, work_kl, pkey, work_cl, cert); in parse_pkcs12()
412 retval = get_key_cert(n, work_kl, pkey, work_cl, cert); in parse_pkcs12()
432 retval = get_key_cert(0, tmpk, pkey, tmpc, cert); in parse_pkcs12()
452 if (pkey != NULL && *pkey != NULL) { in parse_pkcs12()
453 sunw_evp_pkey_free(*pkey); in parse_pkcs12()
454 *pkey = NULL; in parse_pkcs12()
498 sunw_PKCS12_contents(PKCS12 *p12, const char *pass, STACK_OF(EVP_PKEY) **pkey, in sunw_PKCS12_contents() argument
527 retval = set_results(pkey, &work_kl, certs, &work_ca, NULL, in sunw_PKCS12_contents()
649 EVP_PKEY *pkey = NULL; in parse_one_bag() local
660 if ((pkey = EVP_PKCS82PKEY(bag->value.keybag)) == NULL) { in parse_one_bag()
677 pkey = EVP_PKCS82PKEY(p8); in parse_one_bag()
679 if (pkey == NULL) { in parse_one_bag()
773 if (pkey != NULL) { in parse_one_bag()
775 pkey->attributes == NULL) { in parse_one_bag()
776 pkey->attributes = sk_X509_ATTRIBUTE_new_null(); in parse_one_bag()
777 if (pkey->attributes == NULL) { in parse_one_bag()
793 if (sk_X509_ATTRIBUTE_push(pkey->attributes, in parse_one_bag()
813 if (sk_X509_ATTRIBUTE_push(pkey->attributes, in parse_one_bag()
826 if (sk_EVP_PKEY_push(kl, pkey) == 0) { in parse_one_bag()
831 pkey = NULL; in parse_one_bag()
836 if (pkey != NULL) { in parse_one_bag()
837 sunw_evp_pkey_free(pkey); in parse_one_bag()