From 409217678695e0ab8eec361bbc0ad4e2cc17da5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 4 Apr 2014 11:27:08 +0000 Subject: [PATCH] fixed wrong calculation of max pin len; refs #28 --- src/cryptoki.hxx | 3 +-- src/suisseid.hxx | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cryptoki.hxx b/src/cryptoki.hxx index 0269b96..0d734ba 100644 --- a/src/cryptoki.hxx +++ b/src/cryptoki.hxx @@ -1045,7 +1045,7 @@ namespace cryptoki { hardwareVersion(cInfo.hardwareVersion), firmwareVersion(cInfo.firmwareVersion), utcTime(cInfo.utcTime) { - CRYPTOLOG("log *this={"< reader, const cryptoki::Library& cryptoki): - Card(reader, cryptoki), _minPinLen(0), _maxPinLen(0) { + Card(reader, cryptoki), _minPinLen(0), _maxPinLen((unsigned int)-1) { } virtual unsigned int minimalPinLength() { @@ -361,6 +361,7 @@ namespace suisseid { private: void evaluatePinLengths() { + CRYPTOLOG("log"); pcsc::Connection::Reader::Transaction lock(_reader); selectPkcs15File("4408"); cardos::BerValues res(readBerFile());