/titanic_41/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 217 PK11Cert2KMFCert(KMF_HANDLE *kmfh, CK_OBJECT_HANDLE hObj, in PK11Cert2KMFCert() argument 234 ckrv = C_GetAttributeValue(kmfh->pk11handle, hObj, templ, 1); in PK11Cert2KMFCert() 236 SET_ERROR(kmfh, ckrv); in PK11Cert2KMFCert() 241 ckrv = C_GetAttributeValue(kmfh->pk11handle, hObj, templ, 1); in PK11Cert2KMFCert() 244 SET_ERROR(kmfh, ckrv); in PK11Cert2KMFCert() 266 ckrv = C_GetAttributeValue(kmfh->pk11handle, hObj, templ, i); in PK11Cert2KMFCert() 268 SET_ERROR(kmfh, ckrv); in PK11Cert2KMFCert() 302 ckrv = C_GetAttributeValue(kmfh->pk11handle, hObj, in PK11Cert2KMFCert() 306 SET_ERROR(kmfh, ckrv); in PK11Cert2KMFCert() 317 ckrv = getObjectLabel(kmfh, hObj, &label); in PK11Cert2KMFCert() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/ |
H A D | kssladm_create.c | 303 get_sensitive_key_data(KMF_HANDLE_T kmfh, in get_sensitive_key_data() argument 361 pk11session = kmf_get_pk11_handle(kmfh); in get_sensitive_key_data() 436 rv = kmf_find_key(kmfh, numattr, attrlist); in get_sensitive_key_data() 553 rv = kmf_find_key(kmfh, numattr, attrlist); in get_sensitive_key_data() 572 load_from_pkcs11(KMF_HANDLE_T kmfh, in load_from_pkcs11() argument 621 rv = kmf_configure_keystore(kmfh, numattr, attrlist); in load_from_pkcs11() 651 rv = kmf_find_cert(kmfh, numattr, attrlist); in load_from_pkcs11() 707 rv = kmf_find_key(kmfh, numattr, attrlist); in load_from_pkcs11() 709 kmf_free_kmf_key(kmfh, &key); in load_from_pkcs11() 716 rv = get_sensitive_key_data(kmfh, &creds, in load_from_pkcs11() [all …]
|
H A D | ksslutil.c | 42 PKCS12_get_rsa_key_certs(KMF_HANDLE_T kmfh, in PKCS12_get_rsa_key_certs() argument 67 rv = kmf_import_objects(kmfh, (char *)filename, &pk12cred, &tcerts, in PKCS12_get_rsa_key_certs() 78 kmf_free_kmf_cert(kmfh, &tcerts[i]); in PKCS12_get_rsa_key_certs() 102 PEM_get_rsa_key_certs(KMF_HANDLE_T kmfh, in PEM_get_rsa_key_certs() argument 127 rv = kmf_import_objects(kmfh, (char *)filename, &creds, &tcerts, in PEM_get_rsa_key_certs() 138 kmf_free_kmf_cert(kmfh, &tcerts[i]); in PEM_get_rsa_key_certs()
|
/titanic_41/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 415 ssl_cert2KMFDATA(KMF_HANDLE *kmfh, X509 *x509cert, KMF_DATA *cert) in ssl_cert2KMFDATA() argument 425 SET_ERROR(kmfh, ERR_get_error()); in ssl_cert2KMFDATA() 430 SET_SYS_ERROR(kmfh, errno); in ssl_cert2KMFDATA() 441 SET_ERROR(kmfh, ERR_get_error()); in ssl_cert2KMFDATA() 581 load_X509cert(KMF_HANDLE *kmfh, in load_X509cert() argument 604 SET_ERROR(kmfh, ERR_get_error()); in load_X509cert() 620 SET_ERROR(kmfh, ERR_get_error()); in load_X509cert() 629 SET_ERROR(kmfh, ERR_get_error()); in load_X509cert() 665 load_certs(KMF_HANDLE *kmfh, char *issuer, char *subject, KMF_BIGINT *serial, in load_certs() argument 689 rv = kmf_load_cert(kmfh, issuer, subject, serial, validity, in load_certs() [all …]
|
/titanic_41/usr/src/lib/libkmf/libkmf/common/ |
H A D | pk11keys.c | 440 KMF_HANDLE *kmfh = (KMF_HANDLE *)handle; in PKCS_VerifyData() local 507 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_VerifyData() 508 kmfh->lasterr.errcode = ckRv; in PKCS_VerifyData() 521 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_VerifyData() 522 kmfh->lasterr.errcode = ckRv; in PKCS_VerifyData() 532 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_VerifyData() 533 kmfh->lasterr.errcode = ckRv; in PKCS_VerifyData() 545 PKCS_EncryptData(KMF_HANDLE_T kmfh, in PKCS_EncryptData() argument 598 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_EncryptData() 599 kmfh->lasterr.errcode = ckRv; in PKCS_EncryptData() [all …]
|
H A D | pk11tokens.c | 552 kmf_get_pk11_handle(KMF_HANDLE_T kmfh) in kmf_get_pk11_handle() argument 554 return (kmfh->pk11handle); in kmf_get_pk11_handle()
|
/titanic_41/usr/src/lib/libkmf/plugins/kmf_nss/common/ |
H A D | nss_spi.c | 204 KMF_HANDLE *kmfh = (KMF_HANDLE *)handle; in nss_authenticate() local 220 SET_ERROR(kmfh, nssrv); in nss_authenticate() 267 KMF_HANDLE *kmfh = (KMF_HANDLE *)handle; in NSS_ConfigureKeystore() local 286 SET_ERROR(kmfh, err); in NSS_ConfigureKeystore() 311 KMF_HANDLE *kmfh = (KMF_HANDLE *)handle; in do_nss_init() local 333 SET_ERROR(kmfh, PORT_GetError()); in do_nss_init() 371 nss_getcert_by_label(KMF_HANDLE *kmfh, in nss_getcert_by_label() argument 382 SET_ERROR(kmfh, PORT_GetError()); in nss_getcert_by_label() 588 KMF_HANDLE *kmfh = (KMF_HANDLE *)handle; in NSS_FindCert() local 634 rv = nss_getcert_by_label(kmfh, certlabel, kmfcerts, num_certs, in NSS_FindCert() [all …]
|