aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/sql
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-11-26 13:46:16 +0100
committerAndreas Steffen <andi@brisbane.(none)>2010-11-26 13:47:37 +0100
commit6b7897728ad4d44d363ff49b3bc6c186c38233c3 (patch)
treea1c37e4b5f1d78eaa388ab6a913f7a97c81bd99b /src/libcharon/plugins/sql
parent3fe656fdc9869c90b9e4d644dce55fd01d7c89e8 (diff)
downloadstrongswan-6b7897728ad4d44d363ff49b3bc6c186c38233c3.tar.bz2
strongswan-6b7897728ad4d44d363ff49b3bc6c186c38233c3.tar.xz
support PEM-encoded certificates stored in SQL databases
Diffstat (limited to 'src/libcharon/plugins/sql')
-rw-r--r--src/libcharon/plugins/sql/sql_cred.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/plugins/sql/sql_cred.c b/src/libcharon/plugins/sql/sql_cred.c
index 12f4ab045..aad813ed3 100644
--- a/src/libcharon/plugins/sql/sql_cred.c
+++ b/src/libcharon/plugins/sql/sql_cred.c
@@ -62,7 +62,7 @@ static bool private_enumerator_enumerate(private_enumerator_t *this,
while (this->inner->enumerate(this->inner, &type, &blob))
{
this->current = lib->creds->create(lib->creds, CRED_PRIVATE_KEY, type,
- BUILD_BLOB_ASN1_DER, blob,
+ BUILD_BLOB_PEM, blob,
BUILD_END);
if (this->current)
{
@@ -148,7 +148,7 @@ static bool cert_enumerator_enumerate(cert_enumerator_t *this,
while (this->inner->enumerate(this->inner, &type, &blob))
{
this->current = lib->creds->create(lib->creds, CRED_CERTIFICATE, type,
- BUILD_BLOB_ASN1_DER, blob,
+ BUILD_BLOB_PEM, blob,
BUILD_END);
if (this->current)
{