aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/pubkey
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-05-15 01:28:48 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-05-15 01:28:48 +0200
commit1bfb8007c22e14025a7308e371851130df94e93e (patch)
tree4904faf9d2664abf643e4230db5a8d4047b7660b /src/libstrongswan/plugins/pubkey
parentc628e3455d486e0ebc1b98e749f9b625a9e65523 (diff)
downloadstrongswan-1bfb8007c22e14025a7308e371851130df94e93e.tar.bz2
strongswan-1bfb8007c22e14025a7308e371851130df94e93e.tar.xz
got rid of libcrypto
Diffstat (limited to 'src/libstrongswan/plugins/pubkey')
-rw-r--r--src/libstrongswan/plugins/pubkey/pubkey_public_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/pubkey/pubkey_public_key.c b/src/libstrongswan/plugins/pubkey/pubkey_public_key.c
index 2210f08ce..6d3ae66ab 100644
--- a/src/libstrongswan/plugins/pubkey/pubkey_public_key.c
+++ b/src/libstrongswan/plugins/pubkey/pubkey_public_key.c
@@ -145,7 +145,7 @@ static void add(private_builder_t *this, builder_part_t part, ...)
va_start(args, part);
pem = va_arg(args, char *);
blob = chunk_clone(chunk_create(pem, strlen(pem)));
- if (pem_to_bin(&blob, &chunk_empty, &pgp))
+ if (pem_to_bin(&blob, chunk_empty, &pgp) == SUCCESS)
{
this->key = pubkey_public_key_load(chunk_clone(blob));
}