diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-05-28 23:53:55 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-05-29 01:33:17 +0200 |
commit | a0d8b8a3b78b1d0db50de2a7d841efaec2a55c36 (patch) | |
tree | 749fb2a2fd5888145030b546666a41d28479bafa /src/Common | |
parent | 3f806010d2e2d54f0b5bc796f2d5e506e66537c7 (diff) | |
download | VeraCrypt-a0d8b8a3b78b1d0db50de2a7d841efaec2a55c36.tar.gz VeraCrypt-a0d8b8a3b78b1d0db50de2a7d841efaec2a55c36.zip |
Linux/MacOSX: Implement passing smart card PIN as command line argument (--token-pin switch)
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/SecurityToken.cpp | 1 | ||||
-rw-r--r-- | src/Common/SecurityToken.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Common/SecurityToken.cpp b/src/Common/SecurityToken.cpp index 78a3e6c1..597c6a2f 100644 --- a/src/Common/SecurityToken.cpp +++ b/src/Common/SecurityToken.cpp @@ -517,6 +517,7 @@ namespace VeraCrypt size_t cmdPinLen = strlen (cmdPin); burn (cmdPin, cmdPinLen); } + PinCallback->notifyIncorrectPin (); (*WarningCallback) (Pkcs11Exception (CKR_PIN_INCORRECT)); continue; } diff --git a/src/Common/SecurityToken.h b/src/Common/SecurityToken.h index 95d95fc8..89f60dfb 100644 --- a/src/Common/SecurityToken.h +++ b/src/Common/SecurityToken.h @@ -170,6 +170,7 @@ namespace VeraCrypt { virtual ~GetPinFunctor () { } virtual void operator() (string &str) = 0; + virtual void notifyIncorrectPin () = 0; }; struct SendExceptionFunctor |