Lines Matching full:slotidx
66 CK_ULONG slotidx;
192 pkcs11_find(struct pkcs11_provider *p, CK_ULONG slotidx, CK_ATTRIBUTE *attr,
202 session = p->slotinfo[slotidx].session;
256 si = &k11->provider->slotinfo[k11->slotidx];
279 if (pkcs11_find(k11->provider, k11->slotidx, key_filter, 3, &obj) < 0 &&
280 pkcs11_find(k11->provider, k11->slotidx, key_filter, 2, &obj) < 0) {
305 pkcs11_rsa_wrap(struct pkcs11_provider *provider, CK_ULONG slotidx,
314 k11->slotidx = slotidx;
350 pkcs11_open_session(struct pkcs11_provider *p, CK_ULONG slotidx, char *pin)
358 login_required = p->slotinfo[slotidx].token.flags & CKF_LOGIN_REQUIRED;
363 if ((rv = f->C_OpenSession(p->slotlist[slotidx], CKF_RW_SESSION|
377 p->slotinfo[slotidx].logged_in = 1;
379 p->slotinfo[slotidx].session = session;
384 * lookup public keys for token in slot identified by slotidx,
389 pkcs11_fetch_keys(struct pkcs11_provider *p, CK_ULONG slotidx, Key ***keysp,
415 session = p->slotinfo[slotidx].session;
457 pkcs11_rsa_wrap(p, slotidx, &attribs[0], rsa) == 0) {