Home
last modified time | relevance | path

Searched refs:slotID (Results 1 – 25 of 25) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSessionUtil.c50 kernel_delete_all_sessions(CK_SLOT_ID slotID, boolean_t wrapper_only) in kernel_delete_all_sessions() argument
57 pslot = slot_table[slotID]; in kernel_delete_all_sessions()
83 kernel_delete_session(slotID, session_p, B_FALSE, wrapper_only); in kernel_delete_all_sessions()
95 kernel_add_session(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, in kernel_add_session() argument
115 new_sp->ses_slotid = slotID; in kernel_add_session()
126 pslot = slot_table[slotID]; in kernel_add_session()
180 kernel_delete_session(CK_SLOT_ID slotID, kernel_session_t *session_p, in kernel_delete_session() argument
194 pslot = slot_table[slotID]; in kernel_delete_session()
480 int slotID; in kernel_acquire_all_slots_mutexes() local
486 for (slotID = 0; slotID < slot_count; slotID++) { in kernel_acquire_all_slots_mutexes()
[all …]
H A DkernelSlotToken.c82 C_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo) in C_GetSlotInfo() argument
91 if (slotID >= slot_count) { in C_GetSlotInfo()
99 gi.gi_provider_id = slot_table[slotID]->sl_provider_id; in C_GetSlotInfo()
136 C_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) in C_GetTokenInfo() argument
145 if (slotID >= slot_count) in C_GetTokenInfo()
151 gi.gi_provider_id = slot_table[slotID]->sl_provider_id; in C_GetTokenInfo()
223 C_GetMechanismList(CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, in C_GetMechanismList() argument
239 if (slotID >= slot_count) in C_GetMechanismList()
243 provider_id = slot_table[slotID]->sl_provider_id; in C_GetMechanismList()
364 C_GetMechanismInfo(CK_SLOT_ID slotID, CK_MECHANISM_TYPE type, in C_GetMechanismInfo() argument
[all …]
H A DkernelSession.h161 void kernel_delete_all_sessions(CK_SLOT_ID slotID, boolean_t wrapper_only);
166 CK_RV kernel_add_session(CK_SLOT_ID slotID, CK_FLAGS flags,
169 void kernel_delete_session(CK_SLOT_ID slotID, kernel_session_t *sp,
H A DkernelSession.c36 C_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, in C_OpenSession() argument
55 if (slotID >= slot_count) { in C_OpenSession()
64 pslot = slot_table[slotID]; in C_OpenSession()
74 rv = kernel_add_session(slotID, flags, pApplication, Notify, in C_OpenSession()
136 C_CloseAllSessions(CK_SLOT_ID slotID) in C_CloseAllSessions() argument
142 kernel_delete_all_sessions(slotID, B_FALSE); in C_CloseAllSessions()
198 pInfo->slotID = session_p->ses_slotid; in C_GetSessionInfo()
/titanic_41/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Session.c43 C_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, in C_OpenSession() argument
65 return (fast_funcs->C_OpenSession(TRUEID(slotID+1), in C_OpenSession()
68 return (fast_funcs->C_OpenSession(slotID, flags, in C_OpenSession()
74 if (slotID == METASLOT_FRAMEWORK_ID) { in C_OpenSession()
79 if (pkcs11_validate_and_convert_slotid(slotID, &fw_st_id) in C_OpenSession()
97 if (slotID == METASLOT_FRAMEWORK_ID) { in C_OpenSession()
108 FUNCLIST(slotID)->C_CloseSession(prov_sess); in C_OpenSession()
164 C_CloseAllSessions(CK_SLOT_ID slotID) in C_CloseAllSessions() argument
188 TRUEID(slotID+1))); in C_CloseAllSessions()
190 return (fast_funcs->C_CloseAllSessions(slotID)); in C_CloseAllSessions()
[all …]
H A Dpkcs11SlotToken.c134 C_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo) in C_GetSlotInfo() argument
146 return (fast_funcs->C_GetSlotInfo(slotID, pInfo)); in C_GetSlotInfo()
148 if (slotID == METASLOT_FRAMEWORK_ID) { in C_GetSlotInfo()
154 if (pkcs11_validate_and_convert_slotid(slotID, &fw_st_id) != CKR_OK) { in C_GetSlotInfo()
169 C_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) in C_GetTokenInfo() argument
180 return (fast_funcs->C_GetTokenInfo(slotID, pInfo)); in C_GetTokenInfo()
182 if (slotID == METASLOT_FRAMEWORK_ID) { in C_GetTokenInfo()
188 if (pkcs11_validate_and_convert_slotid(slotID, &fw_st_id) != CKR_OK) { in C_GetTokenInfo()
582 C_GetMechanismList(CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, in C_GetMechanismList() argument
601 return (fast_funcs->C_GetMechanismList(slotID, in C_GetMechanismList()
[all …]
H A Dpkcs11Slot.h114 #define FUNCLIST(slotID) (slottable->st_slots[(slotID)]->sl_func_list) argument
120 #define TRUEID(slotID) (slottable->st_slots[(slotID)]->sl_id) argument
H A DmetaSlotToken.c85 meta_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo) in meta_GetSlotInfo() argument
135 meta_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) in meta_GetTokenInfo() argument
241 meta_GetMechanismList(CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, in meta_GetMechanismList() argument
273 meta_GetMechanismInfo(CK_SLOT_ID slotID, CK_MECHANISM_TYPE type, in meta_GetMechanismInfo() argument
350 meta_InitToken(CK_SLOT_ID slotID, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen, in meta_InitToken() argument
H A DmetaGlobal.h705 CK_RV meta_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo);
706 CK_RV meta_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo);
707 CK_RV meta_GetMechanismList(CK_SLOT_ID slotID,
709 CK_RV meta_GetMechanismInfo(CK_SLOT_ID slotID, CK_MECHANISM_TYPE type,
711 CK_RV meta_InitToken(CK_SLOT_ID slotID, CK_UTF8CHAR_PTR pPin,
717 CK_RV meta_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags,
721 CK_RV meta_CloseAllSessions(CK_SLOT_ID slotID);
H A DmetaSession.c50 meta_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, in meta_OpenSession() argument
141 meta_CloseAllSessions(CK_SLOT_ID slotID) in meta_CloseAllSessions() argument
150 if (slotID != METASLOT_SLOTID) in meta_CloseAllSessions()
192 pInfo->slotID = METASLOT_SLOTID; in meta_GetSessionInfo()
H A Dpkcs11SUNWExtensions.c314 slot_id = session_info.slotID; in SUNW_C_KeyToObject()
/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftSlotToken.c279 C_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo) in C_GetSlotInfo() argument
289 if (slotID != SOFTTOKEN_SLOTID) in C_GetSlotInfo()
306 C_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) in C_GetTokenInfo() argument
315 if (slotID != SOFTTOKEN_SLOTID) in C_GetTokenInfo()
382 C_GetMechanismList(CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, in C_GetMechanismList() argument
392 if (slotID != SOFTTOKEN_SLOTID) in C_GetMechanismList()
422 C_GetMechanismInfo(CK_SLOT_ID slotID, CK_MECHANISM_TYPE type, in C_GetMechanismInfo() argument
432 if (slotID != SOFTTOKEN_SLOTID) in C_GetMechanismInfo()
459 C_InitToken(CK_SLOT_ID slotID, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen, in C_InitToken() argument
H A DsoftSession.c35 C_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, in C_OpenSession() argument
51 if (slotID != SOFTTOKEN_SLOTID) in C_OpenSession()
139 C_CloseAllSessions(CK_SLOT_ID slotID) in C_CloseAllSessions() argument
147 if (slotID != SOFTTOKEN_SLOTID) in C_CloseAllSessions()
209 pInfo->slotID = SOFTTOKEN_SLOTID; in C_GetSessionInfo()
/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dapi_interface.c393 C_CloseAllSessions(CK_SLOT_ID slotID) in C_CloseAllSessions() argument
406 if (!global_shm->token_available || (slotID > NUMBER_SLOTS_MANAGED)) in C_CloseAllSessions()
427 if (pCur->SltId == slotID) { in C_CloseAllSessions()
1374 C_GetMechanismInfo(CK_SLOT_ID slotID, in C_GetMechanismInfo() argument
1382 if (!global_shm->token_available || (slotID > NUMBER_SLOTS_MANAGED)) in C_GetMechanismInfo()
1386 rv = FuncList.ST_GetMechanismInfo(slotID, type, pInfo); in C_GetMechanismInfo()
1394 C_GetMechanismList(CK_SLOT_ID slotID, in C_GetMechanismList() argument
1406 if (!global_shm->token_available || (slotID > NUMBER_SLOTS_MANAGED)) in C_GetMechanismList()
1410 rv = FuncList.ST_GetMechanismList(slotID, in C_GetMechanismList()
1503 C_GetSlotInfo(CK_SLOT_ID slotID, in C_GetSlotInfo() argument
[all …]
H A Dtpmtok_int.h178 CK_SLOT_ID slotID; member
1266 (void *ppFunctionList, CK_SLOT_ID slotID, CK_CHAR_PTR pCorrelator);
1284 (CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo);
1287 (CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo);
1290 (CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList,
1294 (CK_SLOT_ID slotID, CK_MECHANISM_TYPE type,
1298 (CK_SLOT_ID slotID, CK_CHAR_PTR pPin, CK_ULONG usPinLen,
1312 (CK_SLOT_ID slotID, CK_FLAGS flags,
1320 (CK_SLOT_ID slotID);
H A Dapiutil.c443 rSession->slotID = pSession->SltId; in Valid_Session()
H A Dutility.c362 copy_slot_info(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR sinfo) in copy_slot_info() argument
H A Dsess_mgr.c374 new_session->session_info.slotID = 1; in session_mgr_new()
H A Dnew_host.c591 sess->session_info.slotID = sid; in SC_OpenSession()
/titanic_41/usr/src/lib/pkcs11/include/
H A Dpkcs11f.h86 CK_SLOT_ID slotID, /* the ID of the slot */
97 CK_SLOT_ID slotID, /* ID of the token's slot */
108 CK_SLOT_ID slotID, /* ID of token's slot */
120 CK_SLOT_ID slotID, /* ID of the token's slot */
132 CK_SLOT_ID slotID, /* ID of the token's slot */
172 CK_SLOT_ID slotID, /* the slot's ID */
195 CK_SLOT_ID slotID /* the token's slot */
H A Dpkcs11t.h302 CK_SLOT_ID slotID; member
/titanic_41/usr/src/cmd/cmd-crypto/digest/
H A Ddigest.c366 CK_SLOT_ID slotID; in execute_cmd() local
545 slotID = token_slot_id; in execute_cmd()
551 slotID = pSlotList[i]; in execute_cmd()
552 rv = C_GetMechanismInfo(slotID, mech_type, &info); in execute_cmd()
567 rv = C_GetMechanismInfo(slotID, in execute_cmd()
592 rv = C_OpenSession(slotID, CKF_SERIAL_SESSION, in execute_cmd()
/titanic_41/usr/src/cmd/cmd-crypto/decrypt/
H A Ddecrypt.c421 CK_SLOT_ID slotID; in execute_cmd() local
596 slotID = token_slot_id; in execute_cmd()
601 slotID = pSlotList[i]; in execute_cmd()
602 rv = C_GetMechanismInfo(slotID, mech_type, &info); in execute_cmd()
617 rv = C_GetMechanismInfo(slotID, in execute_cmd()
637 rv = C_OpenSession(slotID, CKF_SERIAL_SESSION, in execute_cmd()
/titanic_41/usr/src/lib/sasl_plugins/digestmd5/
H A Ddigestmd5.c5260 CK_SLOT_ID slotID; local
5287 slotID = pSlotList[i];
5288 rv = C_GetMechanismList(slotID, NULL_PTR, &ulMechTypeCount);
5304 rv = C_GetMechanismList(slotID, pMechTypeList, &ulMechTypeCount);
5327 *slot_id = slotID;
/titanic_41/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_crypto_openssl.c3533 CK_SLOT_ID slotID; member
3626 gettext("in slot"), token_choices->token_array[i].slotID, in pkinit_choose_tokens()
3655 gettext("in slot"), token_choices->token_array[i].slotID, in pkinit_choose_tokens()
4196 token_choices.token_array[token_choices.numtokens].slotID = slotlist[i]; in pkinit_open_session()
4297 cctx->slotid = token_choices.token_array[choice].slotID; in pkinit_open_session()