Home
last modified time | relevance | path

Searched refs:slot_session (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaObject.c117 slot_session_t *slot_session = NULL; in meta_CreateObject() local
206 rv = meta_get_slot_session(slot_num, &slot_session, in meta_CreateObject()
212 rv = FUNCLIST(slot_session->fw_st_id)->C_CreateObject( in meta_CreateObject()
213 slot_session->hSession, pTemplate, ulCount, &hNewObject); in meta_CreateObject()
237 rv = meta_get_slot_session(slot_num, &slot_session, in meta_CreateObject()
243 rv = FUNCLIST(slot_session->fw_st_id)->C_CreateObject( in meta_CreateObject()
244 slot_session->hSession, pTemplate, ulCount, in meta_CreateObject()
256 meta_release_slot_session(slot_session); in meta_CreateObject()
257 slot_session = NULL; in meta_CreateObject()
271 meta_slot_object_activate(slot_object, slot_session, in meta_CreateObject()
[all …]
H A DmetaSession.c220 slot_session_t *slot_session; in meta_getopstatelen() local
225 slot_session = session->op1.session; in meta_getopstatelen()
226 rv = FUNCLIST(slot_session->fw_st_id)->C_GetOperationState( in meta_getopstatelen()
227 slot_session->hSession, NULL, &length); in meta_getopstatelen()
244 slot_session_t *slot_session = NULL; in meta_GetOperationState() local
309 slot_session = session->op1.session; in meta_GetOperationState()
311 opstate.state[0].op_slotnum = slot_session->slotnum; in meta_GetOperationState()
316 rv = FUNCLIST(slot_session->fw_st_id)->C_GetOperationState( in meta_GetOperationState()
317 slot_session->hSession, in meta_GetOperationState()
350 meta_set_opstate(slot_session_t *slot_session, in meta_set_opstate() argument
[all …]
H A DmetaObjectManager.c276 meta_object_get_attr(slot_session_t *slot_session, CK_OBJECT_HANDLE hObject, in meta_object_get_attr() argument
286 CK_SESSION_HANDLE hSession = slot_session->hSession; in meta_object_get_attr()
287 CK_SLOT_ID fw_st_id = slot_session->fw_st_id; in meta_object_get_attr()
881 create_wrap_unwrap_key(slot_session_t *slot_session, CK_OBJECT_HANDLE *hObject, in create_wrap_unwrap_key() argument
956 rv = FUNCLIST(slot_session->fw_st_id)->C_CreateObject( in create_wrap_unwrap_key()
957 slot_session->hSession, template, i + 1, hObject); in create_wrap_unwrap_key()
1520 CK_ULONG slot_num, slot_session_t *slot_session, slot_object_t **clone) in meta_object_get_clone() argument
1578 rv = clone_by_wrap(object, newclone, slot_session); in meta_object_get_clone()
1580 rv = clone_by_create(object, newclone, slot_session); in meta_object_get_clone()
1588 meta_slot_object_activate(newclone, slot_session, object->isToken); in meta_object_get_clone()
[all …]
H A DmetaSlotToken.c381 slot_session_t *slot_session; in meta_SetPIN() local
392 rv = meta_get_slot_session(get_keystore_slotnum(), &slot_session, in meta_SetPIN()
399 rv = FUNCLIST(slot_session->fw_st_id)->C_SetPIN(slot_session->hSession, in meta_SetPIN()
402 meta_release_slot_session(slot_session); in meta_SetPIN()
H A DmetaUtil.c516 slot_session_t *slot_session = NULL; in meta_do_operation() local
604 slot_session = session->op1.session; in meta_do_operation()
606 if (slot_session) { in meta_do_operation()
607 hSession = slot_session->hSession; in meta_do_operation()
608 fw_st_id = slot_session->fw_st_id; in meta_do_operation()
650 slot_session->slotnum, slot_session, &slot_object); in meta_do_operation()
H A DmetaGlobal.h635 CK_RV meta_object_get_attr(slot_session_t *slot_session,
649 CK_ULONG slot_num, slot_session_t *slot_session,