Dirk-Willem van Gulik
2014-Jun-04 08:24 UTC
[patch] Tiny patch to change 'no slots' to debug in PKCS#11 situations
Folks, Not very critical - but below would help make the PKCS#11 experience a bit smoother. The, occasionally informative, no-slots message is moved to ?debug?; as otherwise, in a mixed pkcs#11 and file-based environment virtually all non chip-card driven ssh connections spew ?no slot? on stderr. And in day to day use - the only time you want this message is when you are debugging an issue; such as a faulty card or reader. Tested on freebsd and osx. Thanks, Dw. diff -u openssh-6.6p1.orig/ssh-pkcs11.c openssh-6.6p1/ssh-pkcs11.c --- openssh-6.6p1.orig/ssh-pkcs11.c 2014-06-04 10:19:09.000000000 +0200 +++ openssh-6.6p1/ssh-pkcs11.c 2014-06-04 10:20:29.000000000 +0200 @@ -602,7 +602,7 @@ goto fail; } if (p->nslots == 0) { - error("no slots"); + debug("no slots"); goto fail; } p->slotlist = xcalloc(p->nslots, sizeof(CK_SLOT_ID));
Seemingly Similar Threads
- [patch] Updated patch for pkcs#11 smartcard readers that have a protected PIN path
- [Bug 2817] New: Add support for PKCS#11 URIs (RFC 7512)
- How to convert S4 class slots into data.frame or how to assign variables of type 'Date'
- [Bug 2240] New: Secure PIN entry for smartcards through the keypad on the reader (patch)
- [Bug 2185] New: Allow entering the PIN via reader pinpad