From d9d0f2875fb7ed47a8f3d3c6f03bd1ff12878eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Thu, 10 Oct 2013 09:13:19 +0000 Subject: [PATCH] functions to scan specific cards; refs #28 --- src/cryptoki.cxx | 8 ++++++-- src/cryptoki.hxx | 3 ++- src/pcsc.hxx | 13 +++++++++++++ 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/cryptoki.cxx b/src/cryptoki.cxx index 01ad8c0..fd2b8a9 100644 --- a/src/cryptoki.cxx +++ b/src/cryptoki.cxx @@ -200,7 +200,7 @@ namespace cryptoki { } @endcode */ - SlotList Init::slotList(bool tokenPresent) { + SlotList Init::slotList(bool tokenPresent, std::string name) { CRYPTOKI_LOG("log"); SlotList res; CK_ULONG count(0); @@ -217,7 +217,11 @@ namespace cryptoki { } while (_res==CKR_BUFFER_TOO_SMALL); check(_res, CRYPTOKI_FN_LOG("C_GetSlotList")); if (!*this) return res; - for (CK_ULONG i(0); i