/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelSlottable.c | 32 CK_ULONG slot_count = 0; variable 62 slot_count = pl->pl_count; in kernel_get_slot_number() 181 if (rv != CKR_OK || slot_count == 0) { in kernel_slottable_init() 186 slot_table = malloc(sizeof (kernel_slot_t *) * slot_count); in kernel_slottable_init() 192 for (i = 0; i < slot_count; i++) { in kernel_slottable_init() 217 pl = malloc(slot_count * sizeof (crypto_get_provider_list_t)); in kernel_slottable_init() 223 pl->pl_count = slot_count; in kernel_slottable_init() 240 for (i = 0; i < slot_count; i++) { in kernel_slottable_init() 248 for (i = 0; i < slot_count; i++) { in kernel_slottable_init()
|
H A D | kernelSlotToken.c | 57 *pulCount = slot_count; in C_GetSlotList() 61 if (*pulCount < slot_count) { in C_GetSlotList() 62 *pulCount = slot_count; in C_GetSlotList() 66 *pulCount = slot_count; in C_GetSlotList() 73 for (i = 0; i < slot_count; i++) { in C_GetSlotList() 91 if (slotID >= slot_count) { in C_GetSlotInfo() 145 if (slotID >= slot_count) in C_GetTokenInfo() 239 if (slotID >= slot_count) in C_GetMechanismList() 373 if (slotID >= slot_count) in C_GetMechanismInfo()
|
H A D | kernelGeneral.c | 282 for (i = 0; i < slot_count; i++) { in C_Finalize() 309 if (slot_count > 0) { in finalize_common() 310 for (i = 0; i < slot_count; i++) { in finalize_common() 315 slot_count = 0; in finalize_common() 375 for (i = 0; i < slot_count; i++) { in cleanup_library()
|
H A D | kernelSlot.h | 90 extern CK_ULONG slot_count;
|
H A D | kernelSessionUtil.c | 486 for (slotID = 0; slotID < slot_count; slotID++) { in kernel_acquire_all_slots_mutexes() 517 for (slotID = 0; slotID < slot_count; slotID++) { in kernel_release_all_slots_mutexes()
|
H A D | kernelSession.c | 55 if (slotID >= slot_count) { in C_OpenSession()
|
/titanic_50/usr/src/cmd/cmd-crypto/pktool/ |
H A D | tokens.c | 47 CK_ULONG slot_count = 0; in pk_tokens() local 64 if ((rv = get_token_slots(&slots, &slot_count)) != CKR_OK) { in pk_tokens() 72 if (slot_count == 0) { in pk_tokens() 81 for (i = 0; i < slot_count; i++) { in pk_tokens()
|
H A D | common.h | 101 CK_ULONG *slot_count);
|
H A D | common.c | 327 get_token_slots(CK_SLOT_ID_PTR *slot_list, CK_ULONG *slot_count) in get_token_slots() argument 350 *slot_count = 0; in get_token_slots() 363 *slot_count = tmp_count; in get_token_slots()
|
/titanic_50/usr/src/lib/libkmf/libkmf/common/ |
H A D | pk11tokens.c | 96 CK_ULONG *slot_count) in kmf_get_token_slots() argument 125 *slot_count = 0; in kmf_get_token_slots() 139 *slot_count = tmp_count; in kmf_get_token_slots() 297 CK_ULONG slot_count = 0; in kmf_pk11_token_lookup() local 338 kmf_rv = kmf_get_token_slots(handle, &slot_list, &slot_count); in kmf_pk11_token_lookup() 345 if (slot_count == 0) { in kmf_pk11_token_lookup() 351 for (i = 0; i < slot_count; i++) { in kmf_pk11_token_lookup() 394 if (i < slot_count) { in kmf_pk11_token_lookup()
|
/titanic_50/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaSlotManager.c | 72 CK_ULONG slot_count = 0; in meta_slotManager_initialize() local 88 slot_count++; in meta_slotManager_initialize() 95 if (slot_count < 1) { in meta_slotManager_initialize() 100 slots = calloc(slot_count, sizeof (slot_data_t)); in meta_slotManager_initialize() 110 for (i = 0; i < slot_count; i++) { in meta_slotManager_initialize() 115 num_slots = slot_count; in meta_slotManager_initialize()
|
H A D | pkcs11Conf.c | 270 uint_t slot_count = 0; in pkcs11_slot_mapping() local 571 slot_count++; in pkcs11_slot_mapping() 621 if (slot_count == 0) { in pkcs11_slot_mapping()
|
H A D | metaUtil.c | 859 mechinfo_t ***slots, unsigned long *slot_count, boolean_t token_only, in get_slotlist_for_mech() argument 885 *slot_count = 1; in get_slotlist_for_mech() 907 *slot_count = mech_support_info->num_supporting_slots; in get_slotlist_for_mech() 1468 unsigned long i, slot_count = 0; in meta_derive_key() local 1510 &(session->mech_support_info), &slots, &slot_count, in meta_derive_key() 1537 for (i = 0; i < slot_count; i++) { in meta_derive_key()
|
/titanic_50/usr/src/lib/libtnf/ |
H A D | struct.c | 81 count = slotinfo->slot_count; in get_slot_indexed() 93 count = slotinfo->slot_count; in get_slot_named() 138 return (slotinfo->slot_count); in tnf_get_slot_count()
|
H A D | libtnf.h | 79 unsigned slot_count; member
|
H A D | info.c | 364 slotinfo->slot_count = count; in init_slots()
|
/titanic_50/usr/src/cmd/cmd-crypto/cryptoadm/ |
H A D | adm_uef.c | 194 CK_ULONG slot_count; in list_mechlist_for_lib() local 285 rv = prov_funcs->C_GetSlotList(FALSE, NULL_PTR, &slot_count); in list_mechlist_for_lib() 290 } else if (slot_count == 0) { in list_mechlist_for_lib() 299 prov_slots = malloc(slot_count * sizeof (CK_SLOT_ID)); in list_mechlist_for_lib() 307 rv = prov_funcs->C_GetSlotList(FALSE, prov_slots, &slot_count); in list_mechlist_for_lib() 316 (void) printf(gettext("Number of slots: %d\n"), slot_count); in list_mechlist_for_lib() 320 for (i = 0; i < slot_count; i++) { in list_mechlist_for_lib()
|