/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaSlotManager.c | 109 slots[i].fw_st_id = i + 1; in meta_slotManager_initialize() 160 (void) FUNCLIST(session->fw_st_id)->C_CloseSession( in meta_slotManager_finalize() 171 (void) FUNCLIST(session->fw_st_id)->C_CloseSession( in meta_slotManager_finalize() 234 CK_SLOT_ID true_id, fw_st_id; in meta_slotManager_find_object_token() local 236 fw_st_id = slots[slot].fw_st_id; in meta_slotManager_find_object_token() 237 true_id = TRUEID(fw_st_id); in meta_slotManager_find_object_token() 240 rv = FUNCLIST(fw_st_id)->C_GetSlotInfo(true_id, in meta_slotManager_find_object_token() 256 rv = FUNCLIST(fw_st_id)->C_GetSlotInfo(true_id, in meta_slotManager_find_object_token() 285 rv = FUNCLIST(fw_st_id)->C_GetTokenInfo(true_id, in meta_slotManager_find_object_token() 317 rv = FUNCLIST(fw_st_id)->C_GetTokenInfo(true_id, in meta_slotManager_find_object_token() [all …]
|
H A D | metaUtil.c | 189 CK_SLOT_ID fw_st_id; in meta_operation_init() local 239 fw_st_id = init_session->fw_st_id; in meta_operation_init() 242 rv = FUNCLIST(fw_st_id)->C_EncryptInit( in meta_operation_init() 247 rv = FUNCLIST(fw_st_id)->C_DecryptInit( in meta_operation_init() 252 rv = FUNCLIST(fw_st_id)->C_DigestInit( in meta_operation_init() 256 rv = FUNCLIST(fw_st_id)->C_SignInit( in meta_operation_init() 261 rv = FUNCLIST(fw_st_id)->C_VerifyInit( in meta_operation_init() 266 rv = FUNCLIST(fw_st_id)->C_SignRecoverInit( in meta_operation_init() 271 rv = FUNCLIST(fw_st_id)->C_VerifyRecoverInit( in meta_operation_init() 333 CK_SLOT_ID fw_st_id; in meta_operation_init_softtoken() local [all …]
|
H A D | pkcs11SlotToken.c | 138 CK_SLOT_ID fw_st_id; /* id for accessing framework's slottable */ in C_GetSlotInfo() local 154 if (pkcs11_validate_and_convert_slotid(slotID, &fw_st_id) != CKR_OK) { in C_GetSlotInfo() 158 rv = FUNCLIST(fw_st_id)->C_GetSlotInfo(TRUEID(fw_st_id), pInfo); in C_GetSlotInfo() 172 CK_SLOT_ID fw_st_id; /* id for accessing framework's slottable */ in C_GetTokenInfo() local 188 if (pkcs11_validate_and_convert_slotid(slotID, &fw_st_id) != CKR_OK) { in C_GetTokenInfo() 192 rv = FUNCLIST(fw_st_id)->C_GetTokenInfo(TRUEID(fw_st_id), pInfo); in C_GetTokenInfo() 590 CK_SLOT_ID fw_st_id; /* id for accessing framework's slottable */ in C_GetMechanismList() local 610 if (pkcs11_validate_and_convert_slotid(slotID, &fw_st_id) != CKR_OK) { in C_GetMechanismList() 615 true_id = fw_st_id; in C_GetMechanismList() 619 true_id = TRUEID(fw_st_id); in C_GetMechanismList() [all …]
|
H A D | pkcs11Session.c | 47 CK_SLOT_ID fw_st_id; /* id for accessing framework's slottable */ in C_OpenSession() local 77 if (pkcs11_validate_and_convert_slotid(slotID, &fw_st_id) in C_OpenSession() 81 true_id = TRUEID(fw_st_id); in C_OpenSession() 82 rv = FUNCLIST(fw_st_id)->C_OpenSession(true_id, flags, in C_OpenSession() 100 rv = pkcs11_session_add(slottable->st_slots[fw_st_id], in C_OpenSession() 101 fw_st_id, phSession, prov_sess); in C_OpenSession() 168 CK_SLOT_ID fw_st_id; /* id for accessing framework's slottable */ in C_CloseAllSessions() local 193 if (pkcs11_validate_and_convert_slotid(slotID, &fw_st_id) != CKR_OK) { in C_CloseAllSessions() 197 slotp = slottable->st_slots[fw_st_id]; in C_CloseAllSessions() 198 true_id = TRUEID(fw_st_id); in C_CloseAllSessions() [all …]
|
H A D | metaMechManager.c | 340 CK_SLOT_ID fw_st_id, true_id; in meta_mechManager_update_slot() local 343 fw_st_id = meta_slotManager_get_framework_table_id(slotnum); in meta_mechManager_update_slot() 344 true_id = TRUEID(fw_st_id); in meta_mechManager_update_slot() 347 rv = FUNCLIST(fw_st_id)->C_GetMechanismList(true_id, NULL, in meta_mechManager_update_slot() 361 rv = FUNCLIST(fw_st_id)->C_GetMechanismList(true_id, in meta_mechManager_update_slot() 381 if (pkcs11_is_dismech(fw_st_id, tmp_slot_mechlist[i])) { in meta_mechManager_update_slot() 448 CK_SLOT_ID fw_st_id, true_id; in update_slotmech() local 451 fw_st_id = meta_slotManager_get_framework_table_id(slotnum); in update_slotmech() 452 true_id = TRUEID(fw_st_id); in update_slotmech() 459 if (pkcs11_is_dismech(fw_st_id, mech)) { in update_slotmech() [all …]
|
H A D | metaSession.c | 226 rv = FUNCLIST(slot_session->fw_st_id)->C_GetOperationState( in meta_getopstatelen() 316 rv = FUNCLIST(slot_session->fw_st_id)->C_GetOperationState( in meta_GetOperationState() 381 rv = FUNCLIST(slot_session->fw_st_id)->C_SetOperationState( in meta_set_opstate() 389 rv = FUNCLIST(slot_session->fw_st_id)->C_SetOperationState( in meta_set_opstate() 515 CK_SLOT_ID true_id, fw_st_id; in meta_Login() local 538 fw_st_id = login_session->fw_st_id; in meta_Login() 539 rv = FUNCLIST(fw_st_id)->C_Login(login_session->hSession, userType, in meta_Login() 559 true_id = TRUEID(fw_st_id); in meta_Login() 560 rv = FUNCLIST(fw_st_id)->C_GetTokenInfo(true_id, &token_info); in meta_Login() 603 rv = FUNCLIST(logout_session->fw_st_id)->C_Logout( in meta_Logout()
|
H A D | metaObjectManager.c | 287 CK_SLOT_ID fw_st_id = slot_session->fw_st_id; in meta_object_get_attr() local 313 rv = FUNCLIST(fw_st_id)->C_GetAttributeValue(hSession, hObject, in meta_object_get_attr() 373 rv = FUNCLIST(fw_st_id)->C_GetAttributeValue(hSession, hObject, in meta_object_get_attr() 574 rv = FUNCLIST(obj_session->fw_st_id)->\ in meta_object_dealloc() 729 CK_SLOT_ID fw_st_id; in meta_object_copyin() local 778 fw_st_id = session->fw_st_id; in meta_object_copyin() 781 rv = FUNCLIST(fw_st_id)->C_GetAttributeValue(hSession, in meta_object_copyin() 832 rv = FUNCLIST(fw_st_id)->C_GetAttributeValue(hSession, in meta_object_copyin() 956 rv = FUNCLIST(slot_session->fw_st_id)->C_CreateObject( in create_wrap_unwrap_key() 1002 rv = FUNCLIST(dst_slot_session->fw_st_id)->C_CreateObject( in clone_by_create() [all …]
|
H A D | metaObject.c | 212 rv = FUNCLIST(slot_session->fw_st_id)->C_CreateObject( in meta_CreateObject() 243 rv = FUNCLIST(slot_session->fw_st_id)->C_CreateObject( in meta_CreateObject() 437 rv = FUNCLIST(slot_session->fw_st_id)->C_CopyObject( in meta_CopyObject() 488 rv = FUNCLIST(slot_session->fw_st_id)->C_CopyObject( in meta_CopyObject() 697 rv = FUNCLIST(slot_session->fw_st_id)->C_GetAttributeValue( in meta_GetAttributeValue() 770 rv = FUNCLIST(slot_session->fw_st_id)->\ in meta_SetAttributeValue() 814 rv = FUNCLIST(slot_session->fw_st_id)->\ in meta_SetAttributeValue() 851 slot_session->fw_st_id)-> in meta_SetAttributeValue() 1039 CK_SLOT_ID fw_st_id = slot_session->fw_st_id; in meta_search_for_objects() local 1041 rv = FUNCLIST(fw_st_id)->C_FindObjectsInit(hSession, in meta_search_for_objects() [all …]
|
H A D | metaAttrManager.c | 59 rv = FUNCLIST(session->fw_st_id)->C_GetAttributeValue( in get_master_attributes_by_object() 86 rv = FUNCLIST(session->fw_st_id)->C_GetAttributeValue( in get_master_attributes_by_object()
|
H A D | metaSessionManager.c | 275 rv = FUNCLIST(slotsessp->fw_st_id)->C_Logout( in meta_session_deactivate()
|
H A D | metaSlotToken.c | 399 rv = FUNCLIST(slot_session->fw_st_id)->C_SetPIN(slot_session->hSession, in meta_SetPIN()
|
H A D | metaGlobal.h | 243 CK_SLOT_ID fw_st_id; /* used for accessing framework's slottable */ member 483 CK_SLOT_ID fw_st_id; /* framework slot table ID */ member
|