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

Collapse All | Expand All

(-)openssh/scard-opensc.c (-1 / +9 lines)
Lines 133-139 Link Here
133
	key = key_obj->data;
133
	key = key_obj->data;
134
	r = sc_pkcs15_find_pin_by_auth_id(p15card, &key_obj->auth_id,
134
	r = sc_pkcs15_find_pin_by_auth_id(p15card, &key_obj->auth_id,
135
					  &pin_obj);
135
					  &pin_obj);
136
	if (r) {
136
	if (r == SC_ERROR_OBJECT_NOT_FOUND)
137
	{
138
		/* no pin required */
139
		sc_lock(card);
140
		*key_obj_out = key_obj;
141
		return 0;
142
	}
143
	else if (r) {
144
		/* some other OpenSC internal error */
137
		error("Unable to find PIN object from SmartCard: %s",
145
		error("Unable to find PIN object from SmartCard: %s",
138
		      sc_strerror(r));
146
		      sc_strerror(r));
139
		goto err;
147
		goto err;

Return to bug 584