Lines Matching refs:cert
32 X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert,
54 if (pkey == NULL && cert == NULL && ca == NULL) {
59 if (pkey && cert) {
60 if (!X509_check_private_key(cert, pkey))
62 if (!X509_digest(cert, EVP_sha1(), keyid, &keyidlen))
66 if (cert) {
67 bag = PKCS12_add_cert(&bags, cert);
134 PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey, X509 *cert,
138 return PKCS12_create_ex(pass, name, pkey, cert, ca, nid_key, nid_cert,
142 PKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert)
151 if ((bag = PKCS12_SAFEBAG_create_cert(cert)) == NULL)
158 name = (char *)X509_alias_get0(cert, &namelen);
163 keyid = X509_keyid_get0(cert, &keyidlen);