Support for checking whether the signer's email address is contained in
his certificate.
This commit is contained in:
parent
0857c5cfdd
commit
8b21fdb6b8
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
* gpgmeplug.c (signMessage): Implemented warning when signature
|
* gpgmeplug.c (signMessage): Implemented warning when signature
|
||||||
certificates are about to expire
|
certificates are about to expire
|
||||||
* cryptplug.h: dito
|
(isEmailInCertificate): Added support for checking whether the
|
||||||
|
signer's email address is contained in his certificate.
|
||||||
|
|
||||||
|
* cryptplug.h: Implemented warning when signature
|
||||||
|
certificates are about to expire
|
||||||
|
|
||||||
2002-02-27 Marcus Brinkmann <marcus@g10code.de>
|
2002-02-27 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
@ -461,6 +461,13 @@ void setWarnNoCertificate( bool );
|
|||||||
*/
|
*/
|
||||||
bool warnNoCertificate( void );
|
bool warnNoCertificate( void );
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\ingroup groupConfigSign
|
||||||
|
\brief Returns true if the specified email address is contained
|
||||||
|
in the specified certificate.
|
||||||
|
*/
|
||||||
|
bool isEmailInCertificate( const char* email, const char* certificate );
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Specifies how often the PIN is requested when
|
\brief Specifies how often the PIN is requested when
|
||||||
accessing the secret signature key.
|
accessing the secret signature key.
|
||||||
|
@ -343,6 +343,22 @@ bool warnNoCertificate()
|
|||||||
return config.warnNoCertificate;
|
return config.warnNoCertificate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool isEmailInCertificate( const char* email, const char* certificate )
|
||||||
|
{
|
||||||
|
/* PENDING(g10) this function should return true if the email
|
||||||
|
address passed as the first parameter is contained in the
|
||||||
|
certificate passed as the second parameter, and false
|
||||||
|
otherwise. This is used to alert the user if his own email
|
||||||
|
address is not contained in the certificate he uses for
|
||||||
|
signing.
|
||||||
|
Note that the parameter email can be anything that is allowed
|
||||||
|
in a From: line.
|
||||||
|
*/
|
||||||
|
return false; // dummy
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void setNumPINRequests( PinRequests reqMode )
|
void setNumPINRequests( PinRequests reqMode )
|
||||||
{
|
{
|
||||||
config.numPINRequests = reqMode;
|
config.numPINRequests = reqMode;
|
||||||
|
Loading…
Reference in New Issue
Block a user