From 573daabba9c739b10d93bf3f960efb001390b0da Mon Sep 17 00:00:00 2001 From: Matthias Kalle Dalheimer Date: Thu, 28 Feb 2002 09:14:39 +0000 Subject: Implemented warning when the certificates used for signing are about to expire --- gpgmeplug/gpgmeplug.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gpgmeplug/gpgmeplug.c') diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index b09eb7b7..3c73b4c7 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/gpgmeplug/gpgmeplug.c @@ -408,6 +408,17 @@ bool signatureCertificateExpiryNearWarning( void ) return config.signatureCertificateExpiryNearWarning; } + +int signatureCertificateDaysLeftToExpiry( const char* certificate ) +{ + /* PENDING(g10) + Please return the number of days that are left until the + certificate specified in the parameter certificate expires. + */ + return 10; // dummy that triggers a warning in the MUA +} + + void setSignatureCertificateExpiryNearInterval( int interval ) { config.signatureCertificateExpiryNearInterval = interval; @@ -428,6 +439,16 @@ bool caCertificateExpiryNearWarning( void ) return config.cACertificateExpiryNearWarning; } +int caCertificateDaysLeftToExpiry( const char* certificate ) +{ + /* PENDING(g10) + Please return the number of days that are left until the + CA certificate for the certificate specified in the parameter + certificate expires. + */ + return 10; // dummy that triggers a warning in the MUA +} + void setCACertificateExpiryNearInterval( int interval ) { config.cACertificateExpiryNearInterval = interval; @@ -448,6 +469,17 @@ bool rootCertificateExpiryNearWarning( void ) return config.rootCertificateExpiryNearWarning; } +int rootCertificateDaysLeftToExpiry( const char* certificate ) +{ + /* PENDING(g10) + Please return the number of days that are left until the + root certificate for the certificate specified in the parameter + certificate expires. + */ + return 10; // dummy that triggers a warning in the MUA +} + + void setRootCertificateExpiryNearInterval( int interval ) { config.rootCertificateExpiryNearInterval = interval; -- cgit v1.2.3