[pkg-opensc-commit] [opensc] 181/295: pkcs11-tool: show the PIN lengths from token info

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit 1226462f3413a9a3fb1dbc1b0cb5a4b95362d143
Author: Martin Paljak <martin at martinpaljak.net>
Date:   Fri Mar 3 09:26:06 2017 +0200

    pkcs11-tool: show the PIN lengths from token info
---
 src/tools/pkcs11-tool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c
index 68c4e72..c832a8b 100644
--- a/src/tools/pkcs11-tool.c
+++ b/src/tools/pkcs11-tool.c
@@ -1108,6 +1108,7 @@ static void show_token(CK_SLOT_ID slot)
 	printf("  firmware version   : %d.%d\n", info.firmwareVersion.major, info.firmwareVersion.minor);
 	printf("  serial num         : %s\n", p11_utf8_to_local(info.serialNumber,
 			sizeof(info.serialNumber)));
+	printf("  pin min/max        : %lu/%lu\n", info.ulMinPinLen, info.ulMaxPinLen);
 }
 
 static void list_mechs(CK_SLOT_ID slot)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list