aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/gpgmeplug.c
diff options
context:
space:
mode:
authorMatthias Kalle Dalheimer <[email protected]>2002-02-28 12:09:45 +0000
committerMatthias Kalle Dalheimer <[email protected]>2002-02-28 12:09:45 +0000
commit8b21fdb6b869d47152ce538c602f9c56a302c80d (patch)
tree80a05f0204a5a95cae684a2aef35db731c5eca22 /gpgmeplug/gpgmeplug.c
parent* key.h (subkey_s): New member expires_at. (diff)
downloadgpgme-8b21fdb6b869d47152ce538c602f9c56a302c80d.tar.gz
gpgme-8b21fdb6b869d47152ce538c602f9c56a302c80d.zip
Support for checking whether the signer's email address is contained in
his certificate.
Diffstat (limited to 'gpgmeplug/gpgmeplug.c')
-rw-r--r--gpgmeplug/gpgmeplug.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c
index 3c73b4c7..2cb067eb 100644
--- a/gpgmeplug/gpgmeplug.c
+++ b/gpgmeplug/gpgmeplug.c
@@ -343,6 +343,22 @@ bool 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 )
{
config.numPINRequests = reqMode;