aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/fetch.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-08-13 15:05:14 +0200
committerMartin Willi <martin@strongswan.org>2009-08-26 11:23:49 +0200
commitcbb62e8f4c48c795a3cf63899048845ee3bfe75c (patch)
treede9adde5bcfa691b214a5423b49141c6a60991bd /src/pluto/fetch.c
parentf11a78f10a71756a48e318f00a0772f42226b1ef (diff)
downloadstrongswan-cbb62e8f4c48c795a3cf63899048845ee3bfe75c.tar.bz2
strongswan-cbb62e8f4c48c795a3cf63899048845ee3bfe75c.tar.xz
handle pluto specific certificates under CRED_CERTIFICATE, not as own credential kind
Diffstat (limited to 'src/pluto/fetch.c')
-rw-r--r--src/pluto/fetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pluto/fetch.c b/src/pluto/fetch.c
index 827c83d55..0c69aa526 100644
--- a/src/pluto/fetch.c
+++ b/src/pluto/fetch.c
@@ -28,6 +28,7 @@
#include <library.h>
#include <debug.h>
#include <asn1/asn1.h>
+#include <credentials/certificates/certificate.h>
#include "constants.h"
#include "defs.h"
@@ -272,7 +273,7 @@ x509crl_t* fetch_crl(char *url)
DBG1("crl fetching failed");
return FALSE;
}
- crl = lib->creds->create(lib->creds, CRED_PLUTO_CERT, CRED_TYPE_CRL,
+ crl = lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_PLUTO_CRL,
BUILD_BLOB_PEM, blob, BUILD_END);
free(blob.ptr);
if (!crl)