Support for asking the for the PIN a certain number of times.
This commit is contained in:
parent
8b21fdb6b8
commit
bf3eccd564
@ -354,6 +354,8 @@ bool isEmailInCertificate( const char* email, const char* certificate )
|
|||||||
signing.
|
signing.
|
||||||
Note that the parameter email can be anything that is allowed
|
Note that the parameter email can be anything that is allowed
|
||||||
in a From: line.
|
in a From: line.
|
||||||
|
Another note: OK, OK, we'll handle that in the MUA. You can
|
||||||
|
assume that you only get the email address.
|
||||||
*/
|
*/
|
||||||
return false; // dummy
|
return false; // dummy
|
||||||
}
|
}
|
||||||
@ -362,6 +364,12 @@ bool isEmailInCertificate( const char* email, const char* certificate )
|
|||||||
void setNumPINRequests( PinRequests reqMode )
|
void setNumPINRequests( PinRequests reqMode )
|
||||||
{
|
{
|
||||||
config.numPINRequests = reqMode;
|
config.numPINRequests = reqMode;
|
||||||
|
|
||||||
|
/* PENDING(g10) Put this value into gpg and make it ask for the pin
|
||||||
|
according to this. Note that there is also
|
||||||
|
setNumPINRequestsInterval() which is only used if reqMode ==
|
||||||
|
PinRequest_AfterMinutes.
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
PinRequests numPINRequests()
|
PinRequests numPINRequests()
|
||||||
@ -371,11 +379,15 @@ PinRequests numPINRequests()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void setNumPINRequestsInterval( int interval )
|
void setNumPINRequestsInterval( int interval )
|
||||||
{
|
{
|
||||||
config.numPINRequestsInterval = interval;
|
config.numPINRequestsInterval = interval;
|
||||||
|
|
||||||
|
/* PENDING(g10) Put this value into gpg and make it ask for the pin
|
||||||
|
according to this. Note that this should only be used if
|
||||||
|
config.numPINRequests (set with setNumPINRequests()) has the
|
||||||
|
value PinRequest_AfterMinutes.
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
int numPINRequestsInterval()
|
int numPINRequestsInterval()
|
||||||
@ -385,10 +397,6 @@ int numPINRequestsInterval()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void setCheckSignatureCertificatePathToRoot( bool flag )
|
void setCheckSignatureCertificatePathToRoot( bool flag )
|
||||||
{
|
{
|
||||||
config.checkSignatureCertificatePathToRoot = flag;
|
config.checkSignatureCertificatePathToRoot = flag;
|
||||||
|
Loading…
Reference in New Issue
Block a user