mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 11:28:26 -06:00
Linux/MacOSX: Implement passing smart card PIN as command line argument (--token-pin switch)
This commit is contained in:
@@ -517,6 +517,7 @@ namespace VeraCrypt
|
||||
size_t cmdPinLen = strlen (cmdPin);
|
||||
burn (cmdPin, cmdPinLen);
|
||||
}
|
||||
PinCallback->notifyIncorrectPin ();
|
||||
(*WarningCallback) (Pkcs11Exception (CKR_PIN_INCORRECT));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -170,6 +170,7 @@ namespace VeraCrypt
|
||||
{
|
||||
virtual ~GetPinFunctor () { }
|
||||
virtual void operator() (string &str) = 0;
|
||||
virtual void notifyIncorrectPin () = 0;
|
||||
};
|
||||
|
||||
struct SendExceptionFunctor
|
||||
|
||||
Reference in New Issue
Block a user