Lines Matching refs:KMF_OK
45 KMF_RETURN rv = KMF_OK; in pk_destroy_keys()
59 if (rv != KMF_OK) in pk_destroy_keys()
78 if (rv == KMF_OK) { in pk_destroy_keys()
101 if (rv == KMF_OK) { in pk_destroy_keys()
122 for (i = 0; rv == KMF_OK && i < *numkeys; i++) { in pk_destroy_keys()
138 KMF_RETURN rv = KMF_OK; in pk_delete_keys()
151 if (rv == KMF_OK && numkeys > 0) { in pk_delete_keys()
164 return (KMF_OK); in pk_delete_keys()
178 if (rv == KMF_OK) { in pk_delete_keys()
192 KMF_RETURN rv = KMF_OK; in pk_delete_certs()
201 if (rv == KMF_OK && numcerts > 0) { in pk_delete_certs()
210 return (KMF_OK); in pk_delete_certs()
229 KMF_RETURN rv = KMF_OK; in delete_nss_keys()
238 if (rv != KMF_OK) in delete_nss_keys()
276 rv = KMF_OK; in delete_nss_keys()
278 if (rv == KMF_OK && (oclass & PK_SYMKEY_OBJ)) { in delete_nss_keys()
291 rv = KMF_OK; in delete_nss_keys()
293 if (rv == KMF_OK && (oclass & PK_PUBKEY_OBJ)) { in delete_nss_keys()
306 rv = KMF_OK; in delete_nss_keys()
308 if (rv == KMF_OK && numkeys == 0) in delete_nss_keys()
321 KMF_RETURN rv = KMF_OK; in delete_nss_certs()
327 if (rv != KMF_OK) in delete_nss_certs()
384 KMF_RETURN rv = KMF_OK; in delete_nss_crl()
390 if (rv != KMF_OK) in delete_nss_crl()
423 KMF_RETURN rv = KMF_OK; in delete_pk11_keys()
440 if (rv != KMF_OK) { in delete_pk11_keys()
482 rv = KMF_OK; in delete_pk11_keys()
485 if (rv == KMF_OK && (oclass & PK_SYMKEY_OBJ)) { in delete_pk11_keys()
497 rv = KMF_OK; in delete_pk11_keys()
500 if (rv == KMF_OK && (oclass & PK_PUBKEY_OBJ)) { in delete_pk11_keys()
513 rv = KMF_OK; in delete_pk11_keys()
515 if (rv == KMF_OK && numkeys == 0) in delete_pk11_keys()
534 if (kmfrv != KMF_OK) { in delete_pk11_certs()
631 KMF_RETURN rv = KMF_OK; in delete_file_keys()
679 rv = KMF_OK; in delete_file_keys()
681 if (rv == KMF_OK && numkeys == 0) in delete_file_keys()
844 if (rv != KMF_OK || bytes == NULL) { in pk_delete()
874 if ((kmfrv = kmf_initialize(&kmfhandle, NULL, NULL)) != KMF_OK) in pk_delete()
877 keyrv = certrv = crlrv = KMF_OK; in pk_delete()
889 if (keyrv != KMF_OK && in pk_delete()
902 if (certrv != KMF_OK && in pk_delete()
911 keyrv = certrv = crlrv = KMF_OK; in pk_delete()
917 if (keyrv != KMF_OK && in pk_delete()
927 if (certrv != KMF_OK && in pk_delete()
940 if (keyrv != KMF_OK) in pk_delete()
947 if (certrv != KMF_OK) in pk_delete()
969 if (keyrv != KMF_ERR_KEY_NOT_FOUND && keyrv != KMF_OK) in pk_delete()
971 else if (certrv != KMF_OK && certrv != KMF_ERR_CERT_NOT_FOUND) in pk_delete()
973 else if (crlrv != KMF_OK && crlrv != KMF_ERR_CRL_NOT_FOUND) in pk_delete()
983 if (kmfrv != KMF_OK) in pk_delete()
986 if (keyrv != KMF_OK && (oclass == PK_KEY_OBJ)) in pk_delete()
988 else if (certrv != KMF_OK && (oclass == PK_CERT_OBJ)) in pk_delete()
990 else if (crlrv != KMF_OK && (oclass == PK_CRL_OBJ)) in pk_delete()
994 if (kmfrv != KMF_OK) { in pk_delete()