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

Collapse All | Expand All

(-)openssh/scard-opensc.c (-1 / +8 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
		*key_obj_out = key_obj;
140
		return 0;
141
	}
142
	else if (r) {
143
		/* some other OpenSC internal error */
137
		error("Unable to find PIN object from SmartCard: %s",
144
		error("Unable to find PIN object from SmartCard: %s",
138
		      sc_strerror(r));
145
		      sc_strerror(r));
139
		goto err;
146
		goto err;

Return to bug 584