From c76835983d17cd26f02d516d7569617483f61ccc Mon Sep 17 00:00:00 2001 From: Matthias Kalle Dalheimer Date: Fri, 1 Mar 2002 17:54:26 +0000 Subject: [PATCH] Support for warning when a CRL expires --- trunk/gpgmeplug/cryptplug.h | 8 ++++++++ trunk/gpgmeplug/gpgmeplug.c | 15 +++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/trunk/gpgmeplug/cryptplug.h b/trunk/gpgmeplug/cryptplug.h index b891c12..9cdeb07 100644 --- a/trunk/gpgmeplug/cryptplug.h +++ b/trunk/gpgmeplug/cryptplug.h @@ -865,6 +865,14 @@ void setEncryptionCRLNearExpiryInterval( int ); int encryptionCRLNearExpiryInterval( void ); +/*! \ingroup groupConfigCrypt + \brief Returns the number of days the currently active certification + list is still valid. +*/ +int encryptionCRLsDaysLeftToExpiry( void ); + + + /*! \ingroup groupConfigDir \brief This function returns an XML representation of a configuration dialog for selecting a directory diff --git a/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index fae689a..0de5d49 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/gpgmeplug/gpgmeplug.c @@ -681,6 +681,11 @@ bool receiverEmailAddressNotInCertificateWarning() void setEncryptionUseCRLs( bool flag ) { config.encryptionUseCRLs = flag; + + /* PENDING(g10) Store this setting in gpgme and use it. If true, + every certificate used for encryption should be checked against + applicable CRLs. + */ } bool encryptionUseCRLs() @@ -688,6 +693,16 @@ bool encryptionUseCRLs() return config.encryptionUseCRLs; } + +int encryptionCRLsDaysLeftToExpiry() +{ + /* PENDING(g10) + Please return the number of days that are left until the + CRL used for encryption expires. + */ + return 10; // dummy that triggers a warning in the MUA +} + void setEncryptionCRLExpiryNearWarning( bool flag ) { config.encryptionCRLExpiryNearWarning = flag; -- 2.26.2