View | Details | Raw Unified | Return to bug 1736 | Differences between
and this patch

Collapse All | Expand All

(-)ssh-pkcs11.c (-1 / +3 lines)
Lines 200-206 Link Here
200
	CK_ATTRIBUTE		key_filter[] = {
200
	CK_ATTRIBUTE		key_filter[] = {
201
		{CKA_CLASS, &private_key_class, sizeof(private_key_class) },
201
		{CKA_CLASS, &private_key_class, sizeof(private_key_class) },
202
		{CKA_ID, NULL, 0},
202
		{CKA_ID, NULL, 0},
203
#if 0
203
		{CKA_SIGN, &true, sizeof(true) }
204
		{CKA_SIGN, &true, sizeof(true) }
205
#endif
204
	};
206
	};
205
	char			*pin, prompt[1024];
207
	char			*pin, prompt[1024];
206
	int			rval = -1;
208
	int			rval = -1;
Lines 236-242 Link Here
236
	}
238
	}
237
	key_filter[1].pValue = k11->keyid;
239
	key_filter[1].pValue = k11->keyid;
238
	key_filter[1].ulValueLen = k11->keyid_len;
240
	key_filter[1].ulValueLen = k11->keyid_len;
239
	if ((rv = f->C_FindObjectsInit(si->session, key_filter, 3)) != CKR_OK) {
241
	if ((rv = f->C_FindObjectsInit(si->session, key_filter, 2)) != CKR_OK) {
240
		error("C_FindObjectsInit failed: %lu", rv);
242
		error("C_FindObjectsInit failed: %lu", rv);
241
		return (-1);
243
		return (-1);
242
	}
244
	}

Return to bug 1736