diff options
author | Martin Willi <martin@strongswan.org> | 2008-03-28 11:47:11 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-03-28 11:47:11 +0000 |
commit | 7539b1d1aa7b04d595ce83af96b46ac11132a690 (patch) | |
tree | e6cdf9f3fdbe5b6fea484ba692168e94539c8125 /src/openac/openac.c | |
parent | acf7956c681fcb53cbd9013c33946efc5c66c411 (diff) | |
download | strongswan-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-x | src/openac/openac.c | 3 |
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; |