aboutsummaryrefslogtreecommitdiffstats
path: root/Source/lib/crypto/x509.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-04-25 10:06:30 +0000
committerMartin Willi <martin@strongswan.org>2006-04-25 10:06:30 +0000
commit13e4a62f5c352981a93156be7749bfa712782d84 (patch)
tree16790bf1294e870da3b40f3991e258b7176f778e /Source/lib/crypto/x509.c
parenta8c09d8cc0044fbff6c89c2e8966427ee7ed1ef0 (diff)
downloadstrongswan-13e4a62f5c352981a93156be7749bfa712782d84.tar.bz2
strongswan-13e4a62f5c352981a93156be7749bfa712782d84.tar.xz
- added separate implementation for connection_store, credential_store, policy_store
- added folder structure to config - credentials are fetched solely on IDs now
Diffstat (limited to 'Source/lib/crypto/x509.c')
-rwxr-xr-xSource/lib/crypto/x509.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/lib/crypto/x509.c b/Source/lib/crypto/x509.c
index 28e7d1898..86a595618 100755
--- a/Source/lib/crypto/x509.c
+++ b/Source/lib/crypto/x509.c
@@ -883,7 +883,8 @@ x509_t *x509_create_from_chunk(chunk_t chunk)
/* we do not use a per-instance logger right now, since its not always accessible */
logger = logger_manager->get_logger(logger_manager, ASN1);
- if (!parse_x509cert(chunk, 0, this))
+ if (!is_asn1(chunk) ||
+ !parse_x509cert(chunk, 0, this))
{
destroy(this);
return NULL;