Lines Matching refs:count

202 		return (gettext("session count"));
3674 (void) strlcat(prompt, gettext(" (Warning: PIN count low)"), prompt_len);
3924 CK_ULONG count;
3976 if ((r = id_cryptoctx->p11->C_FindObjects(session, &obj, 1, &count))
3977 != CKR_OK || count == 0) {
4113 CK_ULONG count = 0;
4157 * Start by getting a count of all slots with or without tokens.
4160 if ((r = cctx->p11->C_GetSlotList(FALSE, NULL, &count)) != CKR_OK) {
4169 if (count == 0) {
4174 pkiDebug("pkinit_open_session: no slots, count: %d\n", count);
4178 tmpslotlist = malloc(count * sizeof (CK_SLOT_ID));
4185 if ((r = cctx->p11->C_GetSlotList(FALSE, tmpslotlist, &count)) != CKR_OK) {
4194 for (i = 0; i < count && cctx->slotid != tmpslotlist[i]; i++)
4197 if (i >= count) {
4210 /* get count of slots that have tokens */
4211 if ((r = cctx->p11->C_GetSlotList(TRUE, NULL, &count)) != CKR_OK) {
4220 if (count == 0) {
4251 slotlist = malloc(count * sizeof (CK_SLOT_ID));
4261 if (cctx->p11->C_GetSlotList(TRUE, slotlist, &count) != CKR_OK) {
4271 token_choices.token_array = malloc(count * sizeof (*token_choices.token_array));
4280 for (i = 0; i < count; i++) {
4483 i + 1, (int) count);
4551 CK_ULONG count;
4597 r = id_cryptoctx->p11->C_FindObjects(id_cryptoctx->session, objp, 1, &count);
4599 pkiDebug("found %d private keys (%s)\n", (int) count, pkinit_pkcs11_code_to_text(r));
4609 if (r == CKR_OK && count != 1) {
4670 r = id_cryptoctx->p11->C_FindObjects(id_cryptoctx->session, objp, 1, &count);
4672 pkiDebug("found %d private keys (%s)\n", (int) count, pkinit_pkcs11_code_to_text(r));
4676 if (r != CKR_OK || count < 1)
5418 &count)) != CKR_OK || count <= 0) {
5422 mechp = (CK_MECHANISM_TYPE_PTR) malloc(count * sizeof (CK_MECHANISM_TYPE));
5426 mechp, &count)) != CKR_OK) {
5430 for (i = 0; i < count; i++) {
5449 pkiDebug("got %d mechs from card\n", (int) count);
5550 int count;
5555 for (count = 0;
5556 count <= MAX_CREDS_ALLOWED && id_cryptoctx->creds[count] != NULL;
5557 count++);
5558 *cert_count = count;