Searched refs:slotlist (Results 1 – 2 of 2) sorted by relevance
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | init_ctx.c | 142 CK_SLOT_ID_PTR slotlist = NULL_PTR; in krb5_open_pkcs11_session() local 160 slotlist = (CK_SLOT_ID_PTR)malloc(slotcount * sizeof(CK_SLOT_ID)); in krb5_open_pkcs11_session() 161 if (slotlist == NULL) { in krb5_open_pkcs11_session() 167 rv = C_GetSlotList(FALSE, slotlist, &slotcount); in krb5_open_pkcs11_session() 174 if (slot_supports_krb5(slotlist + i)) in krb5_open_pkcs11_session() 183 rv = C_OpenSession(slotlist[i], CKF_SERIAL_SESSION, NULL_PTR, NULL_PTR, in krb5_open_pkcs11_session() 189 if (slotlist != NULL) in krb5_open_pkcs11_session() 190 free(slotlist); in krb5_open_pkcs11_session()
|
/titanic_41/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_crypto_openssl.c | 3932 CK_SLOT_ID_PTR slotlist = NULL, tmpslotlist = NULL; in pkinit_open_session() local 4066 if (slotlist != NULL) in pkinit_open_session() 4067 free(slotlist); in pkinit_open_session() 4069 slotlist = malloc(count * sizeof (CK_SLOT_ID)); in pkinit_open_session() 4070 if (slotlist == NULL) { in pkinit_open_session() 4079 if (cctx->p11->C_GetSlotList(TRUE, slotlist, &count) != CKR_OK) { in pkinit_open_session() 4103 if (cctx->slotid != PK_NOSLOT && cctx->slotid != slotlist[i]) in pkinit_open_session() 4107 if ((r = cctx->p11->C_OpenSession(slotlist[i], CKF_SERIAL_SESSION, in pkinit_open_session() 4118 if ((r = cctx->p11->C_GetTokenInfo(slotlist[i], &tinfo)) != CKR_OK) { in pkinit_open_session() 4167 slotlist[i], tokenlabelstr, (char *) cctx->token_label); in pkinit_open_session() [all …]
|