Lines Matching defs:slotidx
68 CK_ULONG slotidx;
193 pkcs11_find(struct pkcs11_provider *p, CK_ULONG slotidx, CK_ATTRIBUTE *attr,
203 session = p->slotinfo[slotidx].session;
255 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|
378 p->slotinfo[slotidx].logged_in = 1;
380 p->slotinfo[slotidx].session = session;
385 * lookup public keys for token in slot identified by slotidx,
394 pkcs11_fetch_keys(struct pkcs11_provider *p, CK_ULONG slotidx,
418 if (pkcs11_fetch_keys_filter(p, slotidx, pubkey_filter, pubkey_attribs,
420 pkcs11_fetch_keys_filter(p, slotidx, cert_filter, cert_attribs,
438 pkcs11_fetch_keys_filter(struct pkcs11_provider *p, CK_ULONG slotidx,
455 session = p->slotinfo[slotidx].session;
521 pkcs11_rsa_wrap(p, slotidx, &attribs[0], rsa) == 0) {