Home
last modified time | relevance | path

Searched refs:tmpcert (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/cmd/svr4pkg/pkgadm/
H A Dcerts.c82 X509 *tmpcert = NULL; in load_cert_and_key() local
96 if ((tmpcert = d2i_X509_fp(incert, NULL)) == NULL) { in load_cert_and_key()
124 tmpcert = sk_X509_value(certs, 0); in load_cert_and_key()
129 if (tmpcert != NULL) { in load_cert_and_key()
136 if (X509_check_private_key(tmpcert, in load_cert_and_key()
158 if (cert && tmpcert) { in load_cert_and_key()
159 *cert = tmpcert; in load_cert_and_key()
160 tmpcert = NULL; in load_cert_and_key()
164 if (tmpcert != NULL) { in load_cert_and_key()
165 X509_free(tmpcert); in load_cert_and_key()
[all …]
/titanic_41/usr/src/common/net/wanboot/
H A Dp12misc.c137 X509 *tmpcert; in sunw_split_certs() local
161 tmpcert = sk_X509_value(allcerts, i); in sunw_split_certs()
162 res = X509_check_private_key(tmpcert, tmpkey); in sunw_split_certs()
166 tmpcert = sk_X509_delete(allcerts, i); in sunw_split_certs()
167 if (sk_X509_push(matching, tmpcert) == 0) { in sunw_split_certs()
168 X509_free(tmpcert); in sunw_split_certs()
/titanic_41/usr/src/lib/libpkg/common/
H A Dkeystore.c627 X509 *tmpcert = NULL; in find_key_cert_pair() local
659 tmpcert = sk_X509_value(ks->clcerts, 0); in find_key_cert_pair()
660 if (sunw_check_keys(tmpcert, tmpkey)) { in find_key_cert_pair()
667 *cert = tmpcert; in find_key_cert_pair()
668 tmpcert = NULL; in find_key_cert_pair()
675 &tmpkey, &tmpcert); in find_key_cert_pair()
689 *cert = tmpcert; in find_key_cert_pair()
690 tmpcert = NULL; in find_key_cert_pair()
694 if (tmpcert != NULL) in find_key_cert_pair()
695 (void) X509_free(tmpcert); in find_key_cert_pair()
H A Dp12lib.c535 X509 *tmpcert; in sunw_split_certs() local
559 tmpcert = sk_X509_value(allcerts, i); in sunw_split_certs()
560 res = X509_check_private_key(tmpcert, tmpkey); in sunw_split_certs()
564 tmpcert = sk_X509_delete(allcerts, i); in sunw_split_certs()
565 if (sk_X509_push(matching, tmpcert) == 0) { in sunw_split_certs()
566 X509_free(tmpcert); in sunw_split_certs()