aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_x509.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-05-21 09:53:23 +0200
committerMartin Willi <martin@revosec.ch>2010-05-21 16:25:51 +0200
commitaab861608a06353fe297da66f49957ce12529bc1 (patch)
treeb48eb167dd5155db29d77f0845142982b7e5a742 /src/libstrongswan/plugins/openssl/openssl_x509.c
parent8029e5efd2a264ff9c5c20e81e4c092c11a643eb (diff)
downloadstrongswan-aab861608a06353fe297da66f49957ce12529bc1.tar.bz2
strongswan-aab861608a06353fe297da66f49957ce12529bc1.tar.xz
Removed is_newer() from certificate_t, obsoleting all implementations
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_x509.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_x509.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_x509.c b/src/libstrongswan/plugins/openssl/openssl_x509.c
index 0ef29b3c2..451510584 100644
--- a/src/libstrongswan/plugins/openssl/openssl_x509.c
+++ b/src/libstrongswan/plugins/openssl/openssl_x509.c
@@ -383,21 +383,6 @@ METHOD(certificate_t, get_validity, bool,
return (t >= this->notBefore && t <= this->notAfter);
}
-METHOD(certificate_t, is_newer, bool,
- private_openssl_x509_t *this, certificate_t *other)
-{
- time_t this_update, that_update, now = time(NULL);
- bool new;
-
- get_validity(this, &now, &this_update, NULL);
- other->get_validity(other, &now, &that_update, NULL);
- new = this_update > that_update;
- DBG1(DBG_LIB, " certificate from %T is %s - existing certificate "
- "from %T %s", &this_update, FALSE, new ? "newer":"not newer",
- &that_update, FALSE, new ? "replaced":"retained");
- return new;
-}
-
METHOD(certificate_t, get_encoding, chunk_t,
private_openssl_x509_t *this)
{
@@ -481,7 +466,6 @@ static private_openssl_x509_t *create_empty()
.issued_by = _issued_by,
.get_public_key = _get_public_key,
.get_validity = _get_validity,
- .is_newer = _is_newer,
.get_encoding = _get_encoding,
.equals = _equals,
.get_ref = _get_ref,