Home
last modified time | relevance | path

Searched refs:soft_slot (Results 1 – 9 of 9) sorted by relevance

/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftGeneral.c127 slot_t soft_slot; variable
223 soft_slot.authenticated = 0; in C_Initialize()
224 soft_slot.userpin_change_needed = 0; in C_Initialize()
225 soft_slot.token_object_list = NULL; in C_Initialize()
226 soft_slot.keystore_load_status = KEYSTORE_UNINITIALIZED; in C_Initialize()
235 if (pthread_mutex_init(&soft_slot.slot_mutex, NULL) != 0) { in C_Initialize()
243 if (pthread_mutex_init(&soft_slot.keystore_mutex, NULL) != 0) { in C_Initialize()
244 (void) pthread_mutex_destroy(&soft_slot.slot_mutex); in C_Initialize()
254 (void) pthread_mutex_destroy(&soft_slot.keystore_mutex); in C_Initialize()
255 (void) pthread_mutex_destroy(&soft_slot.slot_mutex); in C_Initialize()
[all …]
H A DsoftObjectUtil.c615 if (soft_slot.userpin_change_needed) { in search_for_objects()
649 (void) pthread_mutex_lock(&soft_slot.slot_mutex); in search_for_objects()
652 (void) pthread_mutex_unlock(&soft_slot.slot_mutex); in search_for_objects()
655 obj = soft_slot.token_object_list; in search_for_objects()
673 (&soft_slot.slot_mutex); in search_for_objects()
678 (void) pthread_mutex_unlock(&soft_slot.slot_mutex); in search_for_objects()
822 (void) pthread_mutex_lock(&soft_slot.slot_mutex); in soft_add_token_object_to_slot()
825 if (soft_slot.token_object_list == NULL) { in soft_add_token_object_to_slot()
826 soft_slot.token_object_list = objp; in soft_add_token_object_to_slot()
830 soft_slot.token_object_list->prev = objp; in soft_add_token_object_to_slot()
[all …]
H A DsoftSession.c129 soft_slot.authenticated = 0; in C_CloseSession()
130 soft_slot.userpin_change_needed = 0; in C_CloseSession()
169 soft_slot.authenticated = 0; in C_CloseAllSessions()
170 soft_slot.userpin_change_needed = 0; in C_CloseAllSessions()
345 if (soft_slot.authenticated) { in C_Login()
353 if (soft_slot.userpin_change_needed) { in C_Login()
364 soft_slot.authenticated = 1; in C_Login()
425 if (!soft_slot.authenticated) { in C_Logout()
426 if (!soft_slot.userpin_change_needed) { in C_Logout()
434 soft_slot.userpin_change_needed = 0; in C_Logout()
[all …]
H A DsoftKeystoreUtil.c2941 (void) pthread_mutex_lock(&soft_slot.keystore_mutex); in soft_keystore_init()
2948 if (desired_state <= soft_slot.keystore_load_status) { in soft_keystore_init()
2949 (void) pthread_mutex_unlock(&soft_slot.keystore_mutex); in soft_keystore_init()
2950 return (soft_slot.keystore_load_status); in soft_keystore_init()
2959 switch (soft_slot.keystore_load_status) { in soft_keystore_init()
2963 soft_slot.keystore_load_status = KEYSTORE_PRESENT; in soft_keystore_init()
2966 soft_slot.keystore_load_status = in soft_keystore_init()
2969 soft_slot.keystore_load_status = in soft_keystore_init()
2982 if (soft_keystore_get_version(&soft_slot.ks_version, B_FALSE) in soft_keystore_init()
2984 soft_slot.keystore_load_status = KEYSTORE_UNAVAILABLE; in soft_keystore_init()
[all …]
H A DsoftGlobal.h41 extern struct slot soft_slot;
H A DsoftKeystore.c187 soft_slot.userpin_change_needed = 1; in soft_verify_pin()
287 soft_slot.userpin_change_needed = 0; in soft_setpin()
1859 (void) pthread_mutex_lock(&soft_slot.slot_mutex); in soft_put_object_to_keystore()
1863 (void) pthread_mutex_unlock(&soft_slot.slot_mutex); in soft_put_object_to_keystore()
1870 (void) pthread_mutex_unlock(&soft_slot.slot_mutex); in soft_put_object_to_keystore()
1875 (void) pthread_mutex_unlock(&soft_slot.slot_mutex); in soft_put_object_to_keystore()
H A DsoftSlotToken.c326 if (soft_slot.keystore_load_status == KEYSTORE_UNAVAILABLE) { in C_GetTokenInfo()
H A DsoftSessionUtil.c128 if (soft_slot.authenticated) { in soft_add_session()
H A DsoftAttributeUtil.c1237 if (!soft_slot.authenticated) { in soft_parse_common_attrs()
1244 if (!soft_slot.userpin_change_needed) { in soft_parse_common_attrs()
4720 if (!soft_slot.authenticated) {
4728 if (!soft_slot.userpin_change_needed) {