|
|
@ -316,7 +316,7 @@ namespace suisseid { |
|
|
|
/// @copydoc Card::Card
|
|
|
|
/// @copydoc Card::Card
|
|
|
|
Post(std::shared_ptr<pcsc::Connection::Reader> reader, |
|
|
|
Post(std::shared_ptr<pcsc::Connection::Reader> reader, |
|
|
|
const cryptoki::Library& cryptoki): |
|
|
|
const cryptoki::Library& cryptoki): |
|
|
|
Card(reader, cryptoki), _minPinLen(0), _maxPinLen(0) { |
|
|
|
Card(reader, cryptoki), _minPinLen(0), _maxPinLen((unsigned int)-1) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
virtual unsigned int minimalPinLength() { |
|
|
|
virtual unsigned int minimalPinLength() { |
|
|
@ -361,6 +361,7 @@ namespace suisseid { |
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
|
|
|
|
void evaluatePinLengths() { |
|
|
|
void evaluatePinLengths() { |
|
|
|
|
|
|
|
CRYPTOLOG("log"); |
|
|
|
pcsc::Connection::Reader::Transaction lock(_reader); |
|
|
|
pcsc::Connection::Reader::Transaction lock(_reader); |
|
|
|
selectPkcs15File("4408"); |
|
|
|
selectPkcs15File("4408"); |
|
|
|
cardos::BerValues res(readBerFile()); |
|
|
|
cardos::BerValues res(readBerFile()); |
|
|
|