Lines Matching refs:cert

206     STACK_OF(X509) *, X509 **cert);
277 int keyid_len, char *name_str, EVP_PKEY **pkey, X509 **cert, in sunw_PKCS12_parse() argument
292 if (cert) in sunw_PKCS12_parse()
293 *cert = NULL; in sunw_PKCS12_parse()
333 name_str, pkey, cert, ca); in sunw_PKCS12_parse()
344 if (cert && *cert) in sunw_PKCS12_parse()
345 X509_free(*cert); in sunw_PKCS12_parse()
650 X509 *cert = NULL; in sunw_PKCS12_create() local
670 cert = sk_X509_value(certs, i); in sunw_PKCS12_create()
673 if ((bag = M_PKCS12_x5092certbag(cert)) == NULL) { in sunw_PKCS12_create()
677 if (cert->aux != NULL && cert->aux->alias != NULL && in sunw_PKCS12_create()
678 cert->aux->alias->type == V_ASN1_UTF8STRING) { in sunw_PKCS12_create()
679 str = utf82ascstr(cert->aux->alias); in sunw_PKCS12_create()
694 if (cert->aux != NULL && cert->aux->keyid != NULL && in sunw_PKCS12_create()
695 cert->aux->keyid->type == V_ASN1_OCTET_STRING) { in sunw_PKCS12_create()
696 str = cert->aux->keyid->data; in sunw_PKCS12_create()
697 len = cert->aux->keyid->length; in sunw_PKCS12_create()
720 cert = sk_X509_value(cacerts, i); in sunw_PKCS12_create()
721 if ((bag = M_PKCS12_x5092certbag(cert)) == NULL) { in sunw_PKCS12_create()
726 if (cert->aux != NULL && cert->aux->alias != NULL && in sunw_PKCS12_create()
727 cert->aux->alias->type == V_ASN1_UTF8STRING) { in sunw_PKCS12_create()
728 str = utf82ascstr(cert->aux->alias); in sunw_PKCS12_create()
743 if (cert->aux != NULL && cert->aux->keyid != NULL && in sunw_PKCS12_create()
744 cert->aux->keyid->type == V_ASN1_OCTET_STRING) { in sunw_PKCS12_create()
745 str = cert->aux->keyid->data; in sunw_PKCS12_create()
746 len = cert->aux->keyid->length; in sunw_PKCS12_create()
960 X509 *cert) in sunw_set_localkeyid() argument
968 if (cert != NULL) { in sunw_set_localkeyid()
969 if (X509_keyid_set1(cert, (uchar_t *)keyid_str, keyid_len) in sunw_set_localkeyid()
1325 sunw_get_cert_fname(getdo_actions_t dowhat, X509 *cert, char **fname) in sunw_get_cert_fname() argument
1332 if (cert == NULL || cert->aux == NULL || cert->aux->alias == NULL) { in sunw_get_cert_fname()
1338 ASN1_UTF8STRING_free(cert->aux->alias); in sunw_get_cert_fname()
1339 cert->aux->alias = NULL; in sunw_get_cert_fname()
1343 *((uchar_t **)fname) = utf82ascstr(cert->aux->alias); in sunw_get_cert_fname()
1375 sunw_set_fname(const char *ascname, EVP_PKEY *pkey, X509 *cert) in sunw_set_fname() argument
1393 if (cert != NULL) { in sunw_set_fname()
1394 if (cert->aux != NULL && cert->aux->alias != NULL) { in sunw_set_fname()
1395 ASN1_UTF8STRING_free(cert->aux->alias); in sunw_set_fname()
1400 if (len <= 0 || (i = X509_alias_set1(cert, data, len)) == 0) { in sunw_set_fname()
1470 sunw_check_keys(X509 *cert, EVP_PKEY *pkey) in sunw_check_keys() argument
1474 if (pkey != NULL && cert != NULL) in sunw_check_keys()
1475 retval = X509_check_private_key(cert, pkey); in sunw_check_keys()
1495 sunw_check_cert_times(chk_actions_t chkwhat, X509 *cert) in sunw_check_cert_times() argument
1497 return (check_time(chkwhat, cert)); in sunw_check_cert_times()
1542 int kstr_len, char *name_str, EVP_PKEY **pkey, X509 **cert, in parse_pkcs12() argument
1585 work_kl, work_cl, pkey, cert); in parse_pkcs12()
1603 pkey, cert); in parse_pkcs12()
1615 retval = get_key_cert(0, work_kl, pkey, work_cl, cert); in parse_pkcs12()
1634 retval = get_key_cert(n, work_kl, pkey, work_cl, cert); in parse_pkcs12()
1654 retval = get_key_cert(0, tmpk, pkey, tmpc, cert); in parse_pkcs12()
1678 if (cert != NULL && *cert != NULL) { in parse_pkcs12()
1679 X509_free(*cert); in parse_pkcs12()
1680 *cert = NULL; in parse_pkcs12()
2255 X509 **cert) in get_key_cert() argument
2272 if (cert != NULL && *cert == NULL) { in get_key_cert()
2274 *cert = sk_X509_delete(cl, n); in get_key_cert()
2275 if (*cert != NULL) in get_key_cert()
2523 check_time(chk_actions_t chkwhat, X509 *cert) argument
2528 i = X509_cmp_time(X509_get_notBefore(cert), NULL);
2538 i = X509_cmp_time(X509_get_notAfter(cert), NULL);
2595 STACK_OF(X509) *cl, X509 **cert) argument
2610 chkcerts = (cert != NULL || pkey != NULL) && cl != NULL;
2655 if (cert != NULL)
2656 *cert = sk_X509_delete(cl, c);
2674 if (found != 0 && cert != NULL) {
2682 } else if (cert == NULL) {