aboutsummaryrefslogtreecommitdiff
path: root/Changes.rst
diff options
context:
space:
mode:
authorSteffan Karger2015-11-29 10:39:24 +0100
committerGert Doering2015-11-29 13:52:58 +0100
commit13b585e8a4c6f9681ff23bc7fb0af71ce9d0162f (patch)
treeba70584d06cb01f38aba8d7794e8d7de3b2a3647 /Changes.rst
parent09f2670ce27158f81b4983c06f63870a5188d4aa (diff)
downloadopenvpn-13b585e8a4c6f9681ff23bc7fb0af71ce9d0162f.zip
openvpn-13b585e8a4c6f9681ff23bc7fb0af71ce9d0162f.tar.gz
Support duplicate x509 field values in environment
As reported in trac #387, an x509 DN can contain duplicate fields. Previously, we would overwrite any previous field value with a new one if we would process a second same-name field. Now, instead, append _$N, starting at N=1 to the name for each consequent field to export all fields to the enviroment. v2 - make better use of const qualifiers in env_set_get(), and use strcpy() instead of memcpy() in setenv_str_incr() Signed-off-by: Steffan Karger <steffan@karger.me> Acked-by: Selva Nair <selva.nair@gmail.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <CAA1AbxLoZpanyqfpJuroMeOj_M=gU5JB+pqZqRxYqaiNP754-g@mail.gmail.com> URL: http://article.gmane.org/gmane.network.openvpn.devel/10654 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'Changes.rst')
-rw-r--r--Changes.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Changes.rst b/Changes.rst
index 41629bd..a791ca3 100644
--- a/Changes.rst
+++ b/Changes.rst
@@ -36,6 +36,13 @@ LZ4 Compression
User-visible Changes
--------------------
+- For certificate DNs with duplicate fields, e.g. "OU=one,OU=two", both fields
+ are now exported to the environment, where each second and later occurrence
+ of a field get _$N appended to it's field name, starting at N=1. For the
+ example above, that would result in e.g. X509_0_OU=one, X509_0_OU_1=two.
+ Note that this breaks setups that rely on the fact that OpenVPN would
+ previously (incorrectly) only export the last occurence of a field.
+
- proto udp and proto tcp specify to use IPv4 and IPv6. The new
options proto udp4 and tcp4 specify to use IPv4 only.