Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libkmf/plugins/kmf_nss/common/
H A Dnss_spi.c351 nss2kmf_cert(CERTCertificate *nss_cert, KMF_X509_DER_CERT *kmf_cert) in nss2kmf_cert() argument
353 kmf_cert->kmf_private.keystore_type = KMF_KEYSTORE_NSS; in nss2kmf_cert()
354 kmf_cert->kmf_private.flags = KMF_FLAG_CERT_VALID; in nss2kmf_cert()
356 kmf_cert->certificate.Length = nss_cert->derCert.len; in nss2kmf_cert()
358 if ((kmf_cert->certificate.Data = malloc(nss_cert->derCert.len)) == in nss2kmf_cert()
360 kmf_cert->certificate.Length = 0; in nss2kmf_cert()
363 (void) memcpy(kmf_cert->certificate.Data, nss_cert->derCert.data, in nss2kmf_cert()
366 kmf_cert->kmf_private.label = in nss2kmf_cert()
373 char *name, KMF_X509_DER_CERT *kmf_cert, in nss_getcert_by_label() argument
417 if (kmf_cert != NULL) in nss_getcert_by_label()
[all …]
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dopenssl_spi.c1021 KMF_X509_DER_CERT *kmf_cert = NULL; in OpenSSL_FindCert() local
1041 kmf_cert = kmf_get_attr_ptr(KMF_X509_DER_CERT_ATTR, attrlist, in OpenSSL_FindCert()
1101 if (kmf_cert != NULL) { in OpenSSL_FindCert()
1104 kmf_cert[n].certificate.Data = in OpenSSL_FindCert()
1106 kmf_cert[n].certificate.Length = in OpenSSL_FindCert()
1109 kmf_cert[n].kmf_private.keystore_type = in OpenSSL_FindCert()
1111 kmf_cert[n].kmf_private.flags = in OpenSSL_FindCert()
1113 kmf_cert[n].kmf_private.label = in OpenSSL_FindCert()
1150 if (kmf_cert != NULL && certlist != NULL) { in OpenSSL_FindCert()
1152 kmf_cert[n].certificate.Data = in OpenSSL_FindCert()
[all …]
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c77 KMF_X509_DER_CERT *kmf_cert);
673 KMF_X509_DER_CERT *kmf_cert = NULL; in KMFPK11_FindCert() local
700 kmf_cert = kmf_get_attr_ptr(KMF_X509_DER_CERT_ATTR, attrlist, in KMFPK11_FindCert()
734 if (rv == KMF_OK && objlist != NULL && kmf_cert != NULL) { in KMFPK11_FindCert()
739 &kmf_cert[i]); in KMFPK11_FindCert()
756 KMFPK11_FreeKMFCert(KMF_HANDLE_T handle, KMF_X509_DER_CERT *kmf_cert) in KMFPK11_FreeKMFCert() argument
758 if (kmf_cert != NULL && kmf_cert->certificate.Data != NULL) { in KMFPK11_FreeKMFCert()
759 free(kmf_cert->certificate.Data); in KMFPK11_FreeKMFCert()
760 kmf_cert->certificate.Data = NULL; in KMFPK11_FreeKMFCert()
761 kmf_cert->certificate.Length = 0; in KMFPK11_FreeKMFCert()
[all …]
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dgeneralop.c1105 kmf_free_kmf_cert(KMF_HANDLE_T handle, KMF_X509_DER_CERT *kmf_cert) in kmf_free_kmf_cert() argument
1114 if (kmf_cert == NULL) in kmf_free_kmf_cert()
1117 plugin = FindPlugin(handle, kmf_cert->kmf_private.keystore_type); in kmf_free_kmf_cert()
1120 plugin->funclist->FreeKMFCert(handle, kmf_cert); in kmf_free_kmf_cert()