]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
support PEM-encoded certificates stored in SQL databases
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 26 Nov 2010 12:46:16 +0000 (13:46 +0100)
committerAndreas Steffen <andi@brisbane.(none)>
Fri, 26 Nov 2010 12:47:37 +0000 (13:47 +0100)
src/libcharon/plugins/sql/sql_cred.c

index 12f4ab04525453391f808315d5114dc578c534e6..aad813ed36ad9e45a50ae7bdf9e901f6b27fa628 100644 (file)
@@ -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)
                {