Lines Matching defs:token_array

3539     struct _token_entry *token_array;
3580 * - the token_choices->token_array entry
3598 char tmplabel[sizeof (token_choices->token_array->token_info.label) + 1];
3612 trim_token_label(&token_choices->token_array[i].token_info, tmplabel,
3626 gettext("in slot"), token_choices->token_array[i].slotID,
3655 gettext("in slot"), token_choices->token_array[i].slotID,
3703 *choice = i; /* chosen entry of token_choices->token_array */
4089 token_choices.token_array = malloc(count * sizeof (*token_choices.token_array));
4090 if (token_choices.token_array == NULL) {
4195 /* add the token to token_choices.token_array */
4196 token_choices.token_array[token_choices.numtokens].slotID = slotlist[i];
4197 token_choices.token_array[token_choices.numtokens].session = tmpsession;
4198 token_choices.token_array[token_choices.numtokens].token_info = tinfo;
4234 if ((token_choices.token_array[0].token_info.flags & CKF_LOGIN_REQUIRED) &&
4248 cctx->p11->C_CloseSession(token_choices.token_array[i].session);
4250 free(token_choices.token_array);
4251 token_choices.token_array = NULL;
4263 choice = 0; /* really the only choice is the first token_array entry */
4278 cctx->p11->C_CloseSession(token_choices.token_array[i].session);
4280 free(token_choices.token_array);
4281 token_choices.token_array = NULL;
4297 cctx->slotid = token_choices.token_array[choice].slotID;
4298 cctx->session = token_choices.token_array[choice].session;
4305 if ((token_choices.token_array[choice].token_info.flags & CKF_LOGIN_REQUIRED) &&
4307 r = pkinit_login(context, cctx, &token_choices.token_array[choice].token_info);
4323 if (token_choices.token_array != NULL) {
4327 cctx->p11->C_CloseSession(token_choices.token_array[i].session);
4334 cctx->p11->C_CloseSession(token_choices.token_array[i].session);
4338 free(token_choices.token_array);