Searched refs:ckrv (Results 1 – 6 of 6) sorted by relevance
/titanic_44/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 221 CK_RV ckrv = CKR_OK; in PK11Cert2KMFCert() local 234 ckrv = C_GetAttributeValue(kmfh->pk11handle, hObj, templ, 1); in PK11Cert2KMFCert() 235 if (ckrv != CKR_OK || class != CKO_CERTIFICATE) { in PK11Cert2KMFCert() 236 SET_ERROR(kmfh, ckrv); in PK11Cert2KMFCert() 241 ckrv = C_GetAttributeValue(kmfh->pk11handle, hObj, templ, 1); in PK11Cert2KMFCert() 243 if (ckrv != CKR_OK || cktype != CKC_X_509) { in PK11Cert2KMFCert() 244 SET_ERROR(kmfh, ckrv); in PK11Cert2KMFCert() 245 return (ckrv); in PK11Cert2KMFCert() 266 ckrv = C_GetAttributeValue(kmfh->pk11handle, hObj, templ, i); in PK11Cert2KMFCert() 267 if (ckrv != CKR_OK) { in PK11Cert2KMFCert() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/ |
H A D | kssladm_create.c | 318 CK_RV ckrv; in get_sensitive_key_data() local 366 ckrv = C_Login(pk11session, CKU_USER, in get_sensitive_key_data() 368 if (ckrv != CKR_OK && ckrv != CKR_USER_ALREADY_LOGGED_IN) { in get_sensitive_key_data() 371 pkcs11_strerror(ckrv)); in get_sensitive_key_data() 378 ckrv = SUNW_C_KeyToObject(pk11session, CKM_AES_CBC_PAD, aes_key_val, in get_sensitive_key_data() 380 if (ckrv != CKR_OK) { in get_sensitive_key_data() 383 pkcs11_strerror(ckrv)); in get_sensitive_key_data() 446 ckrv = C_WrapKey(pk11session, &aes_cbc_pad_mech, in get_sensitive_key_data() 449 if (ckrv != CKR_OK) { in get_sensitive_key_data() 458 pkcs11_strerror(ckrv)); in get_sensitive_key_data() [all …]
|
/titanic_44/usr/src/lib/libkmf/libkmf/common/ |
H A D | pk11tokens.c | 563 CK_RV ckrv; in kmf_pk11_init_token() local 583 ckrv = C_InitToken(slot_id, sopin, sopinlen, in kmf_pk11_init_token() 586 if (ckrv != CKR_OK) { in kmf_pk11_init_token() 587 if (ckrv == CKR_PIN_INCORRECT) in kmf_pk11_init_token()
|
H A D | pk11keys.c | 798 CK_RV ckrv; in PKCS_DigestData() local 809 ckrv = C_DigestInit(hSession, &mechanism); in PKCS_DigestData() 810 if (ckrv != CKR_OK) { in PKCS_DigestData() 812 kmfh->lasterr.errcode = ckrv; in PKCS_DigestData() 817 ckrv = C_Digest(hSession, tobesigned->Data, in PKCS_DigestData() 819 if (ckrv != CKR_OK) { in PKCS_DigestData() 821 kmfh->lasterr.errcode = ckrv; in PKCS_DigestData()
|
/titanic_44/usr/src/cmd/cmd-crypto/pktool/ |
H A D | common.c | 1318 CK_RV ckrv; in token_auth_needed() local 1326 ckrv = C_GetTokenInfo(slot, &info); in token_auth_needed() 1327 if (ckrv != KMF_OK) in token_auth_needed()
|
/titanic_44/usr/src/lib/libkmf/plugins/kmf_nss/common/ |
H A D | nss_spi.c | 2151 SECStatus ckrv = SECSuccess; in NSS_StoreKey() local 2243 ckrv = PK11_ImportPrivateKeyInfo(nss_slot, &rpk, &nickname, in NSS_StoreKey() 2246 if (ckrv != CKR_OK) { in NSS_StoreKey()
|