/illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | export.c | 136 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_export_file_objects() 180 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_export_pk12_nss() 247 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_export_pk12_files() 344 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_export_nss_objects() 387 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_export_pk12_pk11() 463 &kstype, sizeof (kstype)); in pk_export_pk11_keys() 604 &kstype, sizeof (kstype)); in pk_export_pk11_objects() 647 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_export_pk11_objects() 712 if (kstype == 0) in pk_export() 785 if (kstype == 0) in pk_export() [all …]
|
H A D | import.c | 86 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_import_pk12_files() 138 sizeof (kstype)); in pk_import_pk12_files() 293 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_import_pk12_nss() 434 &kstype, sizeof (kstype)); in pk_import_file_crl() 470 &kstype, sizeof (kstype)); in pk_import_nss_crl() 564 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_import_pk12_pk11() 663 &kstype, sizeof (kstype)); in pk_import_keys() 746 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_import_rawkey() 864 if (kstype == 0) in pk_import() 924 if (kstype == 0) in pk_import() [all …]
|
H A D | genkeypair.c | 70 KMF_KEYSTORE_TYPE_ATTR, &kstype, in genkeypair_pkcs11() 71 sizeof (kstype)); in genkeypair_pkcs11() 169 sizeof (kstype)); in genkeypair_file() 252 sizeof (kstype)); in genkeypair_nss() 324 KMF_KEYSTORE_TYPE kstype = 0; in pk_genkeypair() local 352 kstype = KS2Int(optarg_av); in pk_genkeypair() 353 if (kstype == 0) in pk_genkeypair() 431 if (kstype == 0) in pk_genkeypair() 432 kstype = KMF_KEYSTORE_PK11TOKEN; in pk_genkeypair() 434 DIR_OPTION_CHECK(kstype, dir); in pk_genkeypair() [all …]
|
H A D | delete.c | 58 &kstype, &len); in pk_destroy_keys() 63 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_destroy_keys() 74 switch (kstype) { in pk_destroy_keys() 242 &kstype, sizeof (kstype)); in delete_nss_keys() 331 &kstype, sizeof (kstype)); in delete_nss_certs() 394 &kstype, sizeof (kstype)); in delete_nss_crl() 445 &kstype, sizeof (kstype)); in delete_pk11_keys() 539 &kstype, sizeof (kstype)); in delete_pk11_certs() 586 &kstype, sizeof (kstype)); in delete_file_certs() 640 &kstype, sizeof (kstype)); in delete_file_keys() [all …]
|
H A D | list.c | 214 &kstype, NULL); in pk_find_certs() 264 &kstype, NULL); in pk_list_keys() 343 &kstype, sizeof (kstype)); in list_pk11_objects() 447 &kstype, sizeof (kstype)); in list_pk11_objects() 510 &kstype, sizeof (kstype)); in list_pk11_objects() 554 &kstype, sizeof (kstype)); in list_file_objects() 672 &kstype, sizeof (kstype)); in list_file_objects() 719 &kstype, sizeof (kstype)); in list_nss_objects() 848 &kstype, sizeof (kstype)); in list_nss_objects() 931 if (kstype != 0) in pk_list() [all …]
|
H A D | gencert.c | 146 &kstype, sizeof (kstype)); in gencert_pkcs11() 177 &kstype, sizeof (kstype)); in gencert_pkcs11() 204 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in gencert_pkcs11() 224 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in gencert_pkcs11() 351 &kstype, sizeof (kstype)); in gencert_file() 382 &kstype, sizeof (kstype)); in gencert_file() 503 &kstype, sizeof (kstype)); in gencert_nss() 534 &kstype, sizeof (kstype)); in gencert_nss() 632 if (kstype == 0) in pk_gencert() 760 if (kstype == 0) in pk_gencert() [all …]
|
H A D | genkey.c | 46 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in genkey_nss() local 66 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in genkey_nss() 170 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in genkey_pkcs11() 291 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in genkey_file() 389 kstype = KS2Int(optarg_av); in pk_genkey() 390 if (kstype == 0) in pk_genkey() 494 if (kstype == KMF_KEYSTORE_NSS) { in pk_genkey() 514 (kstype == KMF_KEYSTORE_NSS || kstype == KMF_KEYSTORE_OPENSSL)) { in pk_genkey() 526 DIR_OPTION_CHECK(kstype, dir); in pk_genkey() 528 if (kstype == KMF_KEYSTORE_PK11TOKEN || kstype == KMF_KEYSTORE_NSS) in pk_genkey() [all …]
|
H A D | signcsr.c | 308 &kstype, sizeof (kstype)); in pk_signcsr_files() 353 KMF_KEYSTORE_TYPE kstype, in pk_signcsr_pk11_nss() argument 417 &kstype, sizeof (kstype)); in pk_signcsr_pk11_nss() 419 if (kstype == KMF_KEYSTORE_NSS) { in pk_signcsr_pk11_nss() 476 &kstype, sizeof (kstype)); in pk_signcsr_pk11_nss() 548 KMF_KEYSTORE_TYPE kstype = 0; in pk_signcsr() local 566 if (kstype != 0) in pk_signcsr() 568 kstype = KS2Int(optarg_av); in pk_signcsr() 569 if (kstype == 0) in pk_signcsr() 667 if (kstype == 0) in pk_signcsr() [all …]
|
H A D | gencsr.c | 123 &kstype, sizeof (kstype)); in gencsr_pkcs11() 145 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in gencsr_pkcs11() 340 &kstype, sizeof (kstype)); in gencsr_nss() 373 KMF_KEYSTORE_TYPE kstype = 0; in pk_gencsr() local 426 kstype = KS2Int(optarg_av); in pk_gencsr() 427 if (kstype == 0) in pk_gencsr() 542 if (kstype == 0) in pk_gencsr() 543 kstype = KMF_KEYSTORE_PK11TOKEN; in pk_gencsr() 545 DIR_OPTION_CHECK(kstype, dir); in pk_gencsr() 577 if ((kstype == KMF_KEYSTORE_NSS || kstype == KMF_KEYSTORE_PK11TOKEN)) { in pk_gencsr() [all …]
|
H A D | setpin.c | 52 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in setpin_nss() local 60 &kstype, sizeof (kstype)); in setpin_nss() 124 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_PK11TOKEN; in setpin_pkcs11() local 188 &kstype, sizeof (kstype)); in setpin_pkcs11() 246 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_PK11TOKEN; in pk_setpin() local 255 kstype = KS2Int(optarg_av); in pk_setpin() 256 if (kstype == 0) in pk_setpin() 290 if (kstype == KMF_KEYSTORE_PK11TOKEN && EMPTYSTRING(token_spec)) { in pk_setpin() 292 } else if (kstype == KMF_KEYSTORE_NSS && EMPTYSTRING(token_spec)) { in pk_setpin() 308 switch (kstype) { in pk_setpin()
|
H A D | common.c | 722 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_PK11TOKEN; in select_token() local 729 KMF_KEYSTORE_TYPE_ATTR, &kstype, in select_token() 730 sizeof (kstype)); in select_token() 756 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in configure_nss() local 760 KMF_KEYSTORE_TYPE_ATTR, &kstype, in configure_nss() 761 sizeof (kstype)); in configure_nss() 1108 get_token_password(KMF_KEYSTORE_TYPE kstype, in get_token_password() argument 1118 if (kstype == KMF_KEYSTORE_PK11TOKEN) { in get_token_password() 1150 if (kstype == KMF_KEYSTORE_PK11TOKEN && p != NULL) in get_token_password()
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | keyop.c | 45 KMF_KEYSTORE_TYPE kstype; in kmf_create_keypair() local 70 len = sizeof (kstype); in kmf_create_keypair() 72 &kstype, &len); in kmf_create_keypair() 92 KMF_KEYSTORE_TYPE kstype; in kmf_delete_key_from_keystore() local 117 len = sizeof (kstype); in kmf_delete_key_from_keystore() 119 &kstype, &len); in kmf_delete_key_from_keystore() 184 len = sizeof (kstype); in kmf_find_key() 186 &kstype, &len); in kmf_find_key() 229 len = sizeof (kstype); in kmf_create_sym_key() 231 &kstype, &len); in kmf_create_sym_key() [all …]
|
H A D | certop.c | 109 KMF_KEYSTORE_TYPE kstype; in kmf_find_prikey_by_cert() local 153 &kstype, NULL); in kmf_find_prikey_by_cert() 268 &kstype, NULL); in kmf_find_cert() 867 &kstype, &len); in kmf_verify_data() 1308 &kstype, NULL); in kmf_store_cert() 1345 &kstype, NULL); in kmf_import_cert() 1380 &kstype, NULL); in kmf_delete_cert_from_keystore() 1617 KMF_KEYSTORE_TYPE_ATTR, kstype, sizeof (kstype)); in cert_crl_check() 1674 kstype, sizeof (kstype)); in cert_crl_check() 1677 switch (*kstype) { in cert_crl_check() [all …]
|
H A D | csrcrlop.c | 398 sizeof (Signkey->kstype)); in sign_csr() 645 KMF_KEYSTORE_TYPE kstype; in setup_crl_call() local 646 uint32_t len = sizeof (kstype); in setup_crl_call() 666 &kstype, &len); in setup_crl_call() 670 switch (kstype) { in setup_crl_call() 672 *plugin = FindPlugin(handle, kstype); in setup_crl_call() 743 KMF_KEYSTORE_TYPE kstype; in kmf_find_crl() local 744 uint32_t len = sizeof (kstype); in kmf_find_crl() 766 &kstype, &len); in kmf_find_crl() 770 switch (kstype) { in kmf_find_crl() [all …]
|
H A D | pk11tokens.c | 117 handle->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in kmf_get_token_slots() 147 handle->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in kmf_get_token_slots() 451 KMF_KEYSTORE_TYPE kstype; in kmf_set_token_pin() local 465 len = sizeof (kstype); in kmf_set_token_pin() 467 &kstype, &len); in kmf_set_token_pin() 471 plugin = FindPlugin(handle, kstype); in kmf_set_token_pin() 541 handle->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in kmf_select_token()
|
H A D | generalop.c | 146 KMF_KEYSTORE_TYPE kstype; member 226 if (plugin_list[i].kstype == kstype) { in FindPlugin() 244 if (phead->entry->kstype == kstype) in FindPlugin() 322 p->type = kstype; in InitializePlugin() 535 KMF_KEYSTORE_TYPE kstype; in kmf_configure_keystore() local 556 len = sizeof (kstype); in kmf_configure_keystore() 558 &kstype, &len); in kmf_configure_keystore() 655 h->lasterr.kstype = -1;\ 2666 *kstype = KMF_KEYSTORE_NSS; in kmf_get_plugin_info() 2690 *kstype = phead->entry->kstype; in kmf_get_plugin_info() [all …]
|
H A D | pk11keys.c | 507 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_VerifyData() 521 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_VerifyData() 532 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_VerifyData() 598 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_EncryptData() 629 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_EncryptData() 640 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_EncryptData() 657 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_EncryptData() 670 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_EncryptData() 811 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_DigestData() 820 kmfh->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in PKCS_DigestData()
|
H A D | certgetsetop.c | 1773 plugin = FindPlugin(handle, KMFKey->kstype); in kmf_set_cert_pubkey()
|
/illumos-gate/usr/src/lib/libelfsign/common/ |
H A D | elfcertlib.c | 232 KMF_KEYSTORE_TYPE kstype; in elfcertlib_getcert() local 242 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in elfcertlib_getcert() 344 KMF_KEYSTORE_TYPE kstype; in elfcertlib_loadprivatekey() local 350 kstype = KMF_KEYSTORE_OPENSSL; in elfcertlib_loadprivatekey() 358 &kstype, sizeof (kstype)); in elfcertlib_loadprivatekey() 404 KMF_KEYSTORE_TYPE kstype; in elfcertlib_loadtokenkey() local 439 &kstype, sizeof (kstype)); in elfcertlib_loadtokenkey() 589 KMF_KEYSTORE_TYPE kstype; in elfcertlib_verifysig() local 612 &kstype, sizeof (kstype)); in elfcertlib_verifysig() 688 KMF_KEYSTORE_TYPE kstype; in elfcertlib_settoken() local [all …]
|
/illumos-gate/usr/src/cmd/cmd-crypto/elfsign/ |
H A D | elfsign.c | 743 KMF_KEYSTORE_TYPE kstype; in create_csr() local 763 kstype = KMF_KEYSTORE_OPENSSL; in create_csr() 777 kstype = KMF_KEYSTORE_PK11TOKEN; in create_csr() 782 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in create_csr() 802 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in create_csr() 817 if (kstype == KMF_KEYSTORE_OPENSSL) { in create_csr()
|
/illumos-gate/usr/src/lib/libkmf/include/ |
H A D | kmfapiP.h | 191 h->lasterr.kstype = 0; \ 331 KMF_KEYSTORE_TYPE kstype; member
|
H A D | kmftypes.h | 224 KMF_KEYSTORE_TYPE kstype; member 233 KMF_KEYSTORE_TYPE kstype; member
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 1729 privkey->kstype = KMF_KEYSTORE_PK11TOKEN; in KMFPK11_CreateKeypair() 1734 pubkey->kstype = KMF_KEYSTORE_PK11TOKEN; in KMFPK11_CreateKeypair() 1775 privkey->kstype = KMF_KEYSTORE_PK11TOKEN; in KMFPK11_CreateKeypair() 1780 pubkey->kstype = KMF_KEYSTORE_PK11TOKEN; in KMFPK11_CreateKeypair() 1826 privkey->kstype = KMF_KEYSTORE_PK11TOKEN; in KMFPK11_CreateKeypair() 1831 pubkey->kstype = KMF_KEYSTORE_PK11TOKEN; in KMFPK11_CreateKeypair() 2253 key->kstype = KMF_KEYSTORE_PK11TOKEN; in KMFPK11_FindPrikeyByCert() 3056 keys[n].kstype = KMF_KEYSTORE_PK11TOKEN; in KMFPK11_FindKey() 3680 symkey->kstype = KMF_KEYSTORE_PK11TOKEN; in KMFPK11_CreateSymKey() 4103 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in KMFPK11_ExportPK12() [all …]
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_nss/common/ |
H A D | nss_spi.c | 170 #define SET_ERROR(h, c) h->lasterr.kstype = KMF_KEYSTORE_NSS; \ 974 privkey->kstype = KMF_KEYSTORE_NSS; in NSS_CreateKeypair() 980 pubkey->kstype = KMF_KEYSTORE_NSS; in NSS_CreateKeypair() 1280 key->kstype = KMF_KEYSTORE_NSS; in NSS_FindPrikeyByCert() 1464 keys[count].kstype = KMF_KEYSTORE_NSS; in NSS_FindKey() 1498 keys[count].kstype = KMF_KEYSTORE_NSS; in NSS_FindKey() 1555 keys[count].kstype = KMF_KEYSTORE_NSS; in NSS_FindKey() 2008 symkey->kstype = KMF_KEYSTORE_NSS; in NSS_CreateSymKey() 2252 } else if (pubkey != NULL && pubkey->kstype == KMF_KEYSTORE_NSS) { in NSS_StoreKey() 2261 } else if (prikey != NULL && prikey->kstype == KMF_KEYSTORE_NSS) { in NSS_StoreKey()
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 134 #define SET_ERROR(h, c) h->lasterr.kstype = KMF_KEYSTORE_OPENSSL; \ 137 #define SET_SYS_ERROR(h, c) h->lasterr.kstype = -1; h->lasterr.errcode = c; 1559 privkey->kstype = KMF_KEYSTORE_OPENSSL; in OpenSSL_CreateKeypair() 1567 pubkey->kstype = KMF_KEYSTORE_OPENSSL; in OpenSSL_CreateKeypair() 1606 privkey->kstype = KMF_KEYSTORE_OPENSSL; in OpenSSL_CreateKeypair() 1618 pubkey->kstype = KMF_KEYSTORE_OPENSSL; in OpenSSL_CreateKeypair() 2238 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_OPENSSL; in OpenSSL_FindPrikeyByCert() local 2252 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in OpenSSL_FindPrikeyByCert() 2869 key->kstype = KMF_KEYSTORE_OPENSSL; in fetch_key() 2917 key->kstype = KMF_KEYSTORE_OPENSSL; in fetch_key() [all …]
|