Bugzilla – Attachment 1559 Details for
Bug 1506
rationalize agent behavior on smartcard removal/reattachment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to retry smartcard if detached reader/card is detected.
retry-scard-after-detach.patch (text/plain), 801 bytes, created by
Daniel Kahn Gillmor
on 2008-08-17 00:21:25 AEST
(
hide
)
Description:
patch to retry smartcard if detached reader/card is detected.
Filename:
MIME Type:
Creator:
Daniel Kahn Gillmor
Created:
2008-08-17 00:21:25 AEST
Size:
801 bytes
patch
obsolete
>--- openssh-5.1p1/scard-opensc.c 2008-08-04 07:03:19.000000000 -0400 >+++ openssh-5.1p1.dkg/scard-opensc.c 2008-08-04 09:36:16.000000000 -0400 >@@ -121,7 +121,9 @@ > struct sc_pkcs15_prkey_info *key; > struct sc_pkcs15_object *pin_obj; > struct sc_pkcs15_pin_info *pin; >+ int detach_retry = 1; > >+ detachretry: > priv = (struct sc_priv_data *) RSA_get_app_data(rsa); > if (priv == NULL) > return -1; >@@ -159,6 +161,13 @@ > } > pin = pin_obj->data; > r = sc_lock(card); >+ if (r == SC_ERROR_READER_DETACHED) { >+ /* first retry after a plug fails; we'll try one more time */ >+ debug("Retrying sc_lock() after receiving Error %d (%s)", r, sc_strerror(r)); >+ detach_retry = 0; >+ sc_close(); >+ goto detachretry; >+ } > if (r) { > error("Unable to lock smartcard: %s", sc_strerror(r)); > goto err;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1506
:
1559
|
1561
|
1600
|
1630