aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/credentials/certificates/crl.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-05-21 09:48:23 +0200
committerMartin Willi <martin@revosec.ch>2010-05-21 16:25:51 +0200
commit8029e5efd2a264ff9c5c20e81e4c092c11a643eb (patch)
treee4f40bc654f29ffffd19ef33472e53f1003aaf58 /src/libstrongswan/credentials/certificates/crl.h
parent654218a31b899976ae1788eb5820fc2656a37ab6 (diff)
downloadstrongswan-8029e5efd2a264ff9c5c20e81e4c092c11a643eb.tar.bz2
strongswan-8029e5efd2a264ff9c5c20e81e4c092c11a643eb.tar.xz
Added generic implementations for crl_is_newer/certificate_is_newer
Diffstat (limited to 'src/libstrongswan/credentials/certificates/crl.h')
-rw-r--r--src/libstrongswan/credentials/certificates/crl.h10
1 files changed, 9 insertions, 1 deletions
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_ @}*/