Implemented warning when the certificates used for signing are about to
expire
This commit is contained in:
parent
df8e9fa1e0
commit
573daabba9
@ -525,6 +525,13 @@ void setSignatureCertificateExpiryNearWarning( bool );
|
|||||||
*/
|
*/
|
||||||
bool signatureCertificateExpiryNearWarning( void );
|
bool signatureCertificateExpiryNearWarning( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns the number of days that are left until the
|
||||||
|
specified certificate expires.
|
||||||
|
\param certificate the certificate to check
|
||||||
|
*/
|
||||||
|
int signatureCertificateDaysLeftToExpiry( const char* certificate );
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Specifies the number of days which a signature certificate must
|
\brief Specifies the number of days which a signature certificate must
|
||||||
be valid before it is considered to expire in the near
|
be valid before it is considered to expire in the near
|
||||||
@ -551,6 +558,13 @@ void setCACertificateExpiryNearWarning( bool );
|
|||||||
*/
|
*/
|
||||||
bool caCertificateExpiryNearWarning( void );
|
bool caCertificateExpiryNearWarning( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns the number of days that are left until the
|
||||||
|
CA certificate of the specified certificate expires.
|
||||||
|
\param certificate the certificate to check
|
||||||
|
*/
|
||||||
|
int caCertificateDaysLeftToExpiry( const char* certificate );
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Specifies the number of days which a CA certificate must
|
\brief Specifies the number of days which a CA certificate must
|
||||||
be valid before it is considered to expire in the near
|
be valid before it is considered to expire in the near
|
||||||
@ -577,6 +591,13 @@ void setRootCertificateExpiryNearWarning( bool );
|
|||||||
*/
|
*/
|
||||||
bool rootCertificateExpiryNearWarning( void );
|
bool rootCertificateExpiryNearWarning( void );
|
||||||
|
|
||||||
|
/*! \ingroup groupConfigSign
|
||||||
|
\brief Returns the number of days that are left until the
|
||||||
|
root certificate of the specified certificate expires.
|
||||||
|
\param certificate the certificate to check
|
||||||
|
*/
|
||||||
|
int rootCertificateDaysLeftToExpiry( const char* certificate );
|
||||||
|
|
||||||
/*! \ingroup groupConfigSign
|
/*! \ingroup groupConfigSign
|
||||||
\brief Specifies the number of days which a root certificate must
|
\brief Specifies the number of days which a root certificate must
|
||||||
be valid before it is considered to expire in the near
|
be valid before it is considered to expire in the near
|
||||||
|
@ -408,6 +408,17 @@ bool signatureCertificateExpiryNearWarning( void )
|
|||||||
return config.signatureCertificateExpiryNearWarning;
|
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 )
|
void setSignatureCertificateExpiryNearInterval( int interval )
|
||||||
{
|
{
|
||||||
config.signatureCertificateExpiryNearInterval = interval;
|
config.signatureCertificateExpiryNearInterval = interval;
|
||||||
@ -428,6 +439,16 @@ bool caCertificateExpiryNearWarning( void )
|
|||||||
return config.cACertificateExpiryNearWarning;
|
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 )
|
void setCACertificateExpiryNearInterval( int interval )
|
||||||
{
|
{
|
||||||
config.cACertificateExpiryNearInterval = interval;
|
config.cACertificateExpiryNearInterval = interval;
|
||||||
@ -448,6 +469,17 @@ bool rootCertificateExpiryNearWarning( void )
|
|||||||
return config.rootCertificateExpiryNearWarning;
|
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 )
|
void setRootCertificateExpiryNearInterval( int interval )
|
||||||
{
|
{
|
||||||
config.rootCertificateExpiryNearInterval = interval;
|
config.rootCertificateExpiryNearInterval = interval;
|
||||||
|
Loading…
Reference in New Issue
Block a user