fixed compiler warning in openace
authorMartin Willi <martin@strongswan.org>
Fri, 28 Mar 2008 11:47:11 +0000 (11:47 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 28 Mar 2008 11:47:11 +0000 (11:47 -0000)
fixed pem loading bug

src/openac/openac.c

index 799299d..b79f4cd 100755 (executable)
@@ -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;