aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/crl.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-11-10 23:54:04 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-11-10 23:54:04 +0100
commitf565d0c575f9d7e4a53e10ee447871fea21cb2e3 (patch)
tree950b57b988a21db56ded2da3892cfad4dea6b9d4 /src/pluto/crl.c
parentcc543182bcf79b306188262b5537bc55f89c0965 (diff)
downloadstrongswan-f565d0c575.tar.bz2
strongswan-f565d0c575.tar.xz
merged pluto's PGP certificate parsing with charon's
Diffstat (limited to 'src/pluto/crl.c')
-rw-r--r--src/pluto/crl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pluto/crl.c b/src/pluto/crl.c
index f80c7955b..84fe77554 100644
--- a/src/pluto/crl.c
+++ b/src/pluto/crl.c
@@ -113,7 +113,7 @@ bool insert_crl(x509crl_t *x509crl, char *crl_uri, bool cache_crl)
crl_t *crl = (crl_t*)cert_crl;
identification_t *issuer = cert_crl->get_issuer(cert_crl);
chunk_t authKeyID = crl->get_authKeyIdentifier(crl);
- x509cert_t *issuer_cert;
+ cert_t *issuer_cert;
x509crl_t *oldcrl;
time_t now, nextUpdate;
bool valid_sig;
@@ -340,8 +340,7 @@ void check_crls(void)
/*
* verify if a cert hasn't been revoked by a crl
*/
-cert_status_t verify_by_crl(const x509cert_t *cert, time_t *until,
- time_t *revocationDate,
+cert_status_t verify_by_crl(cert_t *cert, time_t *until, time_t *revocationDate,
crl_reason_t *revocationReason)
{
certificate_t *certificate = cert->cert;
@@ -402,7 +401,7 @@ cert_status_t verify_by_crl(const x509cert_t *cert, time_t *until,
certificate_t *cert_crl = x509crl->crl;
crl_t *crl = (crl_t*)cert_crl;
chunk_t authKeyID = crl->get_authKeyIdentifier(crl);
- x509cert_t *issuer_cert;
+ cert_t *issuer_cert;
bool trusted, valid;
DBG(DBG_CONTROL,