Lines Matching refs:cert
20 X509 *cert,
36 X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert, in PKCS12_create_ex2() argument
62 if (pkey == NULL && cert == NULL && ca == NULL) { in PKCS12_create_ex2()
67 if (pkey && cert) { in PKCS12_create_ex2()
68 if (!X509_check_private_key(cert, pkey)) in PKCS12_create_ex2()
70 if (!X509_digest(cert, EVP_sha1(), keyid, &keyidlen)) in PKCS12_create_ex2()
74 if (cert) { in PKCS12_create_ex2()
76 name = (char *)X509_alias_get0(cert, &namelen); in PKCS12_create_ex2()
81 pkeyid = X509_keyid_get0(cert, &pkeyidlen); in PKCS12_create_ex2()
84 bag = pkcs12_add_cert_bag(&bags, cert, name, namelen, pkeyid, pkeyidlen); in PKCS12_create_ex2()
174 PKCS12 *PKCS12_create_ex(const char *pass, const char *name, EVP_PKEY *pkey, X509 *cert, in PKCS12_create_ex() argument
179 return PKCS12_create_ex2(pass, name, pkey, cert, ca, nid_key, nid_cert, in PKCS12_create_ex()
184 PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey, X509 *cert, in PKCS12_create() argument
188 return PKCS12_create_ex(pass, name, pkey, cert, ca, nid_key, nid_cert, in PKCS12_create()
193 X509 *cert, in pkcs12_add_cert_bag() argument
202 if ((bag = PKCS12_SAFEBAG_create_cert(cert)) == NULL) in pkcs12_add_cert_bag()
221 PKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert) in PKCS12_add_cert() argument
231 name = (char *)X509_alias_get0(cert, &namelen); in PKCS12_add_cert()
232 keyid = X509_keyid_get0(cert, &keyidlen); in PKCS12_add_cert()
234 return pkcs12_add_cert_bag(pbags, cert, name, namelen, keyid, keyidlen); in PKCS12_add_cert()