aboutsummaryrefslogtreecommitdiffstats
path: root/src/openac/openac.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-03-28 11:47:11 +0000
committerMartin Willi <martin@strongswan.org>2008-03-28 11:47:11 +0000
commit7539b1d1aa7b04d595ce83af96b46ac11132a690 (patch)
treee6cdf9f3fdbe5b6fea484ba692168e94539c8125 /src/openac/openac.c
parentacf7956c681fcb53cbd9013c33946efc5c66c411 (diff)
downloadstrongswan-7539b1d1aa7b04d595ce83af96b46ac11132a690.tar.bz2
strongswan-7539b1d1aa7b04d595ce83af96b46ac11132a690.tar.xz
fixed compiler warning in openace
fixed pem loading bug
Diffstat (limited to 'src/openac/openac.c')
-rwxr-xr-xsrc/openac/openac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openac/openac.c b/src/openac/openac.c
index 799299dbd..b79f4cdc0 100755
--- a/src/openac/openac.c
+++ b/src/openac/openac.c
@@ -36,6 +36,7 @@
#include <library.h>
#include <debug.h>
#include <asn1/asn1.h>
+#include <asn1/pem.h>
#include <asn1/ttodata.h>
#include <credentials/certificates/x509.h>
#include <credentials/certificates/ac.h>
@@ -184,7 +185,7 @@ static private_key_t* private_key_create_from_file(char *path, chunk_t *secret)
chunk_t chunk = chunk_empty;
private_key_t *key = NULL;
- if (!pem_asn1_load_file(path, &secret, &chunk, &pgp))
+ if (!pem_asn1_load_file(path, secret, &chunk, &pgp))
{
DBG1(" could not load private key file '%s'", path);
return NULL;