diff options
author | Martin Willi <martin@revosec.ch> | 2010-05-21 09:48:23 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-05-21 16:25:51 +0200 |
commit | 8029e5efd2a264ff9c5c20e81e4c092c11a643eb (patch) | |
tree | e4f40bc654f29ffffd19ef33472e53f1003aaf58 /src/libstrongswan/credentials/certificates/certificate.h | |
parent | 654218a31b899976ae1788eb5820fc2656a37ab6 (diff) | |
download | strongswan-8029e5efd2a264ff9c5c20e81e4c092c11a643eb.tar.bz2 strongswan-8029e5efd2a264ff9c5c20e81e4c092c11a643eb.tar.xz |
Added generic implementations for crl_is_newer/certificate_is_newer
Diffstat (limited to 'src/libstrongswan/credentials/certificates/certificate.h')
-rw-r--r-- | src/libstrongswan/credentials/certificates/certificate.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstrongswan/credentials/certificates/certificate.h b/src/libstrongswan/credentials/certificates/certificate.h index a4f9aa3e0..e82fed15d 100644 --- a/src/libstrongswan/credentials/certificates/certificate.h +++ b/src/libstrongswan/credentials/certificates/certificate.h @@ -197,4 +197,13 @@ struct certificate_t { void (*destroy)(certificate_t *this); }; +/** + * Generic check if a given certificate is newer than another. + * + * @param this first certificate to check + * @param other second certificate + * @return TRUE if this newer than other + */ +bool certificate_is_newer(certificate_t *this, certificate_t *other); + #endif /** CERTIFICATE_H_ @}*/ |