From 8029e5efd2a264ff9c5c20e81e4c092c11a643eb Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 21 May 2010 09:48:23 +0200 Subject: Added generic implementations for crl_is_newer/certificate_is_newer --- src/libstrongswan/credentials/certificates/crl.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/libstrongswan/credentials/certificates/crl.h') diff --git a/src/libstrongswan/credentials/certificates/crl.h b/src/libstrongswan/credentials/certificates/crl.h index 4b612390c..9425311fb 100644 --- a/src/libstrongswan/credentials/certificates/crl.h +++ b/src/libstrongswan/credentials/certificates/crl.h @@ -80,7 +80,15 @@ struct crl_t { * @return enumerator over revoked certificates. */ enumerator_t* (*create_enumerator)(crl_t *this); - }; +/** + * Generic check if a given CRL is newer than another. + * + * @param this first CRL to check + * @param other second CRL + * @return TRUE if this newer than other + */ +bool crl_is_newer(crl_t *this, crl_t *other); + #endif /** CRL_H_ @}*/ -- cgit v1.2.3