Home
last modified time | relevance | path

Searched refs:slot_id (Results 1 – 18 of 18) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Slottable.c266 pkcs11_is_valid_slot(CK_SLOT_ID slot_id) { in pkcs11_is_valid_slot() argument
268 if ((slot_id < slottable->st_first) || in pkcs11_is_valid_slot()
269 (slot_id > slottable->st_last)) { in pkcs11_is_valid_slot()
271 } else if (slottable->st_slots[slot_id] != NULL) { in pkcs11_is_valid_slot()
292 pkcs11_validate_and_convert_slotid(CK_SLOT_ID slot_id, in pkcs11_validate_and_convert_slotid() argument
296 *real_slot_id = slot_id; in pkcs11_validate_and_convert_slotid()
299 if (slot_id >= metaslot_keystore_slotid) { in pkcs11_validate_and_convert_slotid()
300 *real_slot_id = slot_id + 1; in pkcs11_validate_and_convert_slotid()
302 *real_slot_id = slot_id; in pkcs11_validate_and_convert_slotid()
H A Dpkcs11SUNWExtensions.c98 match_mech(CK_SLOT_ID slot_id, void *args, CK_RV *rv) in match_mech() argument
130 CK_SLOT_ID slot_id; in pkcs11_GetCriteriaSession() local
170 slot_id = slot_list[i]; in pkcs11_GetCriteriaSession()
171 if ((*criteria)(slot_id, args, &rv)) { in pkcs11_GetCriteriaSession()
182 rv = C_OpenSession(slot_id, CKF_SERIAL_SESSION, NULL, in pkcs11_GetCriteriaSession()
211 CK_SLOT_ID slot_id; in SUNW_C_GetMechSession() local
252 slot_id = slot_list[i]; in SUNW_C_GetMechSession()
265 rv = C_OpenSession(slot_id, CKF_SERIAL_SESSION, NULL, in SUNW_C_GetMechSession()
283 CK_SLOT_ID slot_id; in SUNW_C_KeyToObject() local
314 slot_id = session_info.slotID; in SUNW_C_KeyToObject()
[all …]
H A Dpkcs11Session.c249 CK_SLOT_ID slot_id; in C_GetSessionInfo() local
281 slot_id = sessp->se_slotid; in C_GetSessionInfo()
284 rv = FUNCLIST(slot_id)-> in C_GetSessionInfo()
293 pInfo->slotID = slot_id; in C_GetSessionInfo()
H A Dpkcs11Slot.h127 extern CK_RV pkcs11_is_valid_slot(CK_SLOT_ID slot_id);
128 extern CK_RV pkcs11_validate_and_convert_slotid(CK_SLOT_ID slot_id,
H A Dpkcs11Sessionlist.c45 pkcs11_session_add(pkcs11_slot_t *slotp, CK_SLOT_ID slot_id, in pkcs11_session_add() argument
57 newhandle->se_slotid = slot_id; in pkcs11_session_add()
H A Dpkcs11Session.h62 extern CK_RV pkcs11_session_add(struct pkcs11_slot *pslot, CK_SLOT_ID slot_id,
H A Dpkcs11SlotToken.c60 CK_SLOT_ID slot_id; /* slot ID for returning to the application */ in C_GetSlotList() local
92 slot_id = slottable->st_first; in C_GetSlotList()
110 pSlotList[count] = slot_id; in C_GetSlotList()
111 slot_id++; in C_GetSlotList()
H A Dpkcs11Conf.c256 CK_SLOT_ID slot_id; /* slotID assigned for framework */ in pkcs11_slot_mapping() local
563 rv = pkcs11_slot_allocate(&slot_id); in pkcs11_slot_mapping()
572 cur_slot = slottable->st_slots[slot_id]; in pkcs11_slot_mapping()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpk11tokens.c291 kmf_pk11_token_lookup(KMF_HANDLE_T handle, char *label, CK_SLOT_ID *slot_id) in kmf_pk11_token_lookup() argument
312 if (slot_id == NULL || label == NULL || !strlen(label)) in kmf_pk11_token_lookup()
396 *slot_id = slot_list[i]; in kmf_pk11_token_lookup()
420 *slot_id = slot_list[0]; in kmf_pk11_token_lookup()
506 CK_SLOT_ID slot_id; in kmf_select_token() local
529 kmf_rv = kmf_pk11_token_lookup(handle, label, &slot_id); in kmf_select_token()
539 ck_rv = C_OpenSession(slot_id, openflags, NULL, NULL, &hSession); in kmf_select_token()
564 CK_SLOT_ID slot_id = 0; in kmf_pk11_init_token() local
574 ret = kmf_pk11_token_lookup(handle, currlabel, &slot_id); in kmf_pk11_init_token()
583 ckrv = C_InitToken(slot_id, sopin, sopinlen, in kmf_pk11_init_token()
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dsetpin.c115 CK_SLOT_ID slot_id; in setpin_pkcs11() local
135 rv = kmf_pk11_token_lookup(NULL, token_spec, &slot_id); in setpin_pkcs11()
138 if (C_GetTokenInfo(slot_id, &token_info) != CKR_OK) in setpin_pkcs11()
202 &slot_id, sizeof (slot_id)); in setpin_pkcs11()
H A Dcommon.h89 extern CK_RV login_token(CK_SLOT_ID slot_id, CK_UTF8CHAR_PTR pin,
92 extern CK_RV quick_start(CK_SLOT_ID slot_id, CK_FLAGS sess_flags,
/illumos-gate/usr/src/lib/pkcs11/include/
H A Dcryptoki.h92 boolean_t (*criteria)(CK_SLOT_ID slot_id, void *args, CK_RV *rv),
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_label.c450 char *fmtstr, buf[BUFSZ], slot_id; in g4_chip_label() local
514 slot_id = g4map[mapidx][htid]; in g4_chip_label()
523 (void) snprintf(buf, BUFSZ, fmtstr, slot_id); in g4_chip_label()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/
H A Dpsvcpolicy.c936 char *slot_id; in psvc_fan_hotplug_policy_0() local
973 &slot_id, PSVC_PARENT, 0); in psvc_fan_hotplug_policy_0()
977 psvc_get_attr(hdlp, slot_id, PSVC_ASSOC_MATCHES_ATTR, in psvc_fan_hotplug_policy_0()
981 status = psvc_get_attr(hdlp, slot_id, in psvc_fan_hotplug_policy_0()
/illumos-gate/usr/src/cmd/lofiadm/
H A Dmain.c1240 match_token_cipher(CK_SLOT_ID slot_id, void *args, CK_RV *rv) in match_token_cipher() argument
1273 if (C_GetMechanismInfo(slot_id, cipher->type, &mechinfo) != CKR_OK) { in match_token_cipher()
1278 if (C_GetMechanismInfo(slot_id, CKM_PKCS5_PBKD2, &mechinfo) != in match_token_cipher()
1286 if (token->key == NULL || (C_GetTokenInfo(slot_id, &tokinfo) != CKR_OK)) in match_token_cipher()
1308 cipher->slot = slot_id; in match_token_cipher()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/psvcpolicy/
H A Dpsvcpolicy.c1363 char *slot_id; in psvc_fan_fault_check_policy_0() local
1414 PSVC_ASSOC_ID_ATTR, &slot_id, in psvc_fan_fault_check_policy_0()
1419 psvc_get_attr(hdlp, slot_id, in psvc_fan_fault_check_policy_0()
1426 slot_id, in psvc_fan_fault_check_policy_0()
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_uef.c1619 check_random(CK_SLOT_ID slot_id, CK_FUNCTION_LIST_PTR prov_funcs) in check_random() argument
1626 rv = prov_funcs->C_OpenSession(slot_id, CKF_SERIAL_SESSION, in check_random()
/illumos-gate/usr/src/lib/sasl_plugins/digestmd5/
H A Ddigestmd5.c1254 CK_SLOT_ID slot_id, argument
1296 rv = C_OpenSession(slot_id, CKF_SERIAL_SESSION, NULL_PTR, NULL_PTR,
1335 rv = C_OpenSession(slot_id, CKF_SERIAL_SESSION, NULL_PTR, NULL_PTR,
5257 CK_SLOT_ID *slot_id) argument
5330 *slot_id = slotID;