/illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | export.c | 90 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_OPENSSL; in pk_export_file_objects() local 97 KMF_KEYSTORE_TYPE_ATTR, &kstype, in pk_export_file_objects() 98 sizeof (kstype)); in pk_export_file_objects() 132 kstype = KMF_KEYSTORE_OPENSSL; in pk_export_file_objects() 136 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_export_file_objects() 166 KMF_KEYSTORE_TYPE kstype; in pk_export_pk12_nss() local 178 kstype = KMF_KEYSTORE_NSS; in pk_export_pk12_nss() 180 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_export_pk12_nss() 240 KMF_KEYSTORE_TYPE kstype; in pk_export_pk12_files() local 245 kstype = KMF_KEYSTORE_OPENSSL; in pk_export_pk12_files() [all …]
|
H A D | import.c | 68 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_OPENSSL; in pk_import_pk12_files() local 86 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_import_pk12_files() 137 KMF_KEYSTORE_TYPE_ATTR, &kstype, in pk_import_pk12_files() 138 sizeof (kstype)); in pk_import_pk12_files() 221 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in pk_import_pk12_nss() local 241 KMF_KEYSTORE_TYPE_ATTR, &kstype, in pk_import_pk12_nss() 242 sizeof (kstype)); in pk_import_pk12_nss() 293 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in pk_import_pk12_nss() 361 KMF_KEYSTORE_TYPE kstype, in pk_import_cert() argument 370 if (kstype == KMF_KEYSTORE_PK11TOKEN) { in pk_import_cert() [all …]
|
H A D | genkeypair.c | 55 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_PK11TOKEN; in genkeypair_pkcs11() local 70 KMF_KEYSTORE_TYPE_ATTR, &kstype, in genkeypair_pkcs11() 71 sizeof (kstype)); in genkeypair_pkcs11() 140 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_OPENSSL; in genkeypair_file() local 168 KMF_KEYSTORE_TYPE_ATTR, &kstype, in genkeypair_file() 169 sizeof (kstype)); in genkeypair_file() 234 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in genkeypair_nss() local 251 KMF_KEYSTORE_TYPE_ATTR, &kstype, in genkeypair_nss() 252 sizeof (kstype)); in genkeypair_nss() 324 KMF_KEYSTORE_TYPE kstype = 0; in pk_genkeypair() local [all …]
|
H A D | delete.c | 50 KMF_KEYSTORE_TYPE kstype; in pk_destroy_keys() local 56 len = sizeof (kstype); in pk_destroy_keys() 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() 232 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in delete_nss_keys() local 242 &kstype, sizeof (kstype)); in delete_nss_keys() 322 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in delete_nss_certs() local 331 &kstype, sizeof (kstype)); in delete_nss_certs() 387 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in delete_nss_crl() local [all …]
|
H A D | list.c | 180 } else if (keys[i].kstype == KMF_KEYSTORE_PK11TOKEN) { in pk_show_keys() 211 KMF_KEYSTORE_TYPE kstype; in pk_find_certs() local 214 &kstype, NULL); in pk_find_certs() 249 kstype != KMF_KEYSTORE_OPENSSL) in pk_find_certs() 261 KMF_KEYSTORE_TYPE kstype; in pk_list_keys() local 264 &kstype, NULL); in pk_list_keys() 297 kstype != KMF_KEYSTORE_OPENSSL) in pk_list_keys() 309 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_PK11TOKEN; in list_pk11_objects() local 343 &kstype, sizeof (kstype)); in list_pk11_objects() 421 (void) get_token_password(kstype, token, &cred); in list_pk11_objects() [all …]
|
H A D | gencert.c | 62 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_PK11TOKEN; in gencert_pkcs11() local 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() 263 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_OPENSSL; in gencert_file() local 351 &kstype, sizeof (kstype)); in gencert_file() 382 &kstype, sizeof (kstype)); in gencert_file() 426 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in gencert_nss() local 503 &kstype, sizeof (kstype)); in gencert_nss() [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() 122 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_PK11TOKEN; in genkey_pkcs11() local 170 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in genkey_pkcs11() 265 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_OPENSSL; in genkey_file() local 291 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in genkey_file() 364 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_PK11TOKEN; in pk_genkey() local 389 kstype = KS2Int(optarg_av); in pk_genkey() 390 if (kstype == 0) in pk_genkey() 494 if (kstype == KMF_KEYSTORE_NSS) { in pk_genkey() [all …]
|
H A D | signcsr.c | 216 &key->kstype, sizeof (KMF_KEYSTORE_TYPE)); in pk_sign_cert() 265 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_OPENSSL; in pk_signcsr_files() local 308 &kstype, sizeof (kstype)); in pk_signcsr_files() 353 KMF_KEYSTORE_TYPE kstype, in pk_signcsr_pk11_nss() argument 385 if (kstype == KMF_KEYSTORE_PK11TOKEN) { in pk_signcsr_pk11_nss() 387 } else if (kstype == KMF_KEYSTORE_NSS) { in pk_signcsr_pk11_nss() 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() 490 if (kstype == KMF_KEYSTORE_NSS) { in pk_signcsr_pk11_nss() [all …]
|
H A D | gencsr.c | 61 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_PK11TOKEN; in gencsr_pkcs11() local 123 &kstype, sizeof (kstype)); in gencsr_pkcs11() 145 KMF_KEYSTORE_TYPE_ATTR, &kstype, sizeof (kstype)); in gencsr_pkcs11() 277 KMF_KEYSTORE_TYPE kstype = KMF_KEYSTORE_NSS; in gencsr_nss() local 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() [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() 76 plugin = FindPlugin(handle, kstype); 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() 123 plugin = FindPlugin(handle, kstype); in kmf_delete_key_from_keystore() 161 KMF_KEYSTORE_TYPE kstype; in kmf_find_key() local 184 len = sizeof (kstype); in kmf_find_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() 157 plugin = FindPlugin(handle, kstype); in kmf_find_prikey_by_cert() 249 KMF_KEYSTORE_TYPE kstype; in kmf_find_cert() local 268 &kstype, NULL); in kmf_find_cert() 272 plugin = FindPlugin(handle, kstype); in kmf_find_cert() 400 if (key->kstype == KMF_KEYSTORE_NSS) in get_default_signoid() 767 plugin = FindPlugin(handle, sign_key_ptr->kstype); in kmf_sign_data() 832 KMF_KEYSTORE_TYPE kstype; in kmf_verify_data() local 865 len = sizeof (kstype); in kmf_verify_data() [all …]
|
H A D | csrcrlop.c | 84 plugin = FindPlugin(handle, KMFKey->kstype); in kmf_set_csr_pubkey() 397 KMF_KEYSTORE_TYPE_ATTR, &Signkey->kstype, in sign_csr() 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() [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 203 FindPlugin(KMF_HANDLE_T handle, KMF_KEYSTORE_TYPE kstype) in FindPlugin() argument 215 while (node != NULL && node->plugin->type != kstype) in FindPlugin() 222 if (VALID_DEFAULT_KEYSTORE_TYPE(kstype)) { in FindPlugin() 226 if (plugin_list[i].kstype == kstype) { in FindPlugin() 227 ret = InitializePlugin(plugin_list[i].kstype, in FindPlugin() 244 if (phead->entry->kstype == kstype) in FindPlugin() 288 ret = InitializePlugin(phead->entry->kstype, realpath, in FindPlugin() 308 InitializePlugin(KMF_KEYSTORE_TYPE kstype, char *path, KMF_PLUGIN **plugin) in InitializePlugin() argument 322 p->type = kstype; in InitializePlugin() [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 236 kstype = KMF_KEYSTORE_OPENSSL; in elfcertlib_getcert() 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 427 kstype = KMF_KEYSTORE_PK11TOKEN; in elfcertlib_loadtokenkey() 439 &kstype, sizeof (kstype)); in elfcertlib_loadtokenkey() 540 KMF_KEYSTORE_TYPE_ATTR, &(cert->c_privatekey.kstype), in elfcertlib_sign() [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 | 47 #define SET_ERROR(h, c) h->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; \ 207 handle->lasterr.kstype = KMF_KEYSTORE_PK11TOKEN; in pk11_authenticate() 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() [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 …]
|