Support for warning when a CRL expires
authorMatthias Kalle Dalheimer <kalle@kdab.net>
Fri, 1 Mar 2002 17:54:26 +0000 (17:54 +0000)
committerMatthias Kalle Dalheimer <kalle@kdab.net>
Fri, 1 Mar 2002 17:54:26 +0000 (17:54 +0000)
trunk/gpgmeplug/cryptplug.h
trunk/gpgmeplug/gpgmeplug.c

index b891c1271e9337cadca5377c92c397ce0280c97c..9cdeb07ac1e448ce92c14aa2aad5dff575636d96 100644 (file)
@@ -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
index fae689a4564f6b1a37b68832fddd06eeb5444eb7..0de5d491e10e9790da3a69b3a7011a13f51f7fa3 100644 (file)
@@ -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;