handle pluto specific certificates under CRED_CERTIFICATE, not as own credential kind

This commit is contained in:
Martin Willi
2009-08-26 11:23:49 +02:00
parent f11a78f10a
commit cbb62e8f4c
11 changed files with 40 additions and 43 deletions
+2 -1
View File
@@ -23,6 +23,7 @@
#include "library.h"
#include "asn1/asn1.h"
#include "credentials/certificates/certificate.h"
#include "constants.h"
#include "defs.h"
@@ -155,7 +156,7 @@ bool load_cert(char *filename, const char *label, cert_t *out)
{
cert_t *cert;
cert = lib->creds->create(lib->creds, CRED_PLUTO_CERT, CRED_TYPE_CERTIFICATE,
cert = lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_PLUTO_CERT,
BUILD_FROM_FILE, filename, BUILD_END);
if (cert)
{