aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2008-06-05 19:28:08 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2008-06-05 19:28:08 +0000
commit1e5522ffd7f69149a209fbd17c2bc88e3ec24874 (patch)
tree7c7e9af9977bba15ce222f504886ffd54dc63aed /src/charon/plugins
parent6649a3ca804a119edf4324044bd4bfbc58391d59 (diff)
downloadstrongswan-1e5522ffd7f69149a209fbd17c2bc88e3ec24874.tar.bz2
strongswan-1e5522ffd7f69149a209fbd17c2bc88e3ec24874.tar.xz
convert comma-separated RDNs into slash-separated OpenSSL --subject format
Diffstat (limited to 'src/charon/plugins')
-rw-r--r--src/charon/plugins/sql/pool.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/charon/plugins/sql/pool.c b/src/charon/plugins/sql/pool.c
index 510c769c6..86ceddeee 100644
--- a/src/charon/plugins/sql/pool.c
+++ b/src/charon/plugins/sql/pool.c
@@ -315,14 +315,14 @@ static enumerator_t *create_lease_query(char *filter)
NULL
};
- /* if the filter string contains a distinguished name as a ID, we filter
- * out ", " and replace them by "; " to not confuse the getsubopt parser */
+ /* if the filter string contains a distinguished name as a ID, we replace
+ * ", " by "/ " in order to not confuse the getsubopt parser */
pos = filter;
while ((pos = strchr(pos, ',')))
{
if (pos[1] == ' ')
{
- pos[0] = ';';
+ pos[0] = '/';
}
pos++;
}
@@ -340,16 +340,6 @@ static enumerator_t *create_lease_query(char *filter)
case FIL_ID:
if (value)
{
- /* now re-replace the "; " by ", " */
- pos = value;
- while ((pos = strchr(pos, ';')))
- {
- if (pos[1] == ' ')
- {
- pos[0] = ',';
- }
- pos++;
- }
id = identification_create_from_string(value);
}
if (!id)