]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Do not upcase x509-username-field for mixed-case arguments.
authorAndris Kalnozols <andris@hpl.hp.com>
Sat, 28 Jun 2014 17:41:02 +0000 (19:41 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 10 Jul 2014 19:02:55 +0000 (21:02 +0200)
commita2da658ba6aa34043d87226c3f971474942e0bed
tree1d87b547c6a81734466fb36ba99501e861884446
parent75c3a82e8085233306107495d6b1e0b1ab19eccf
Do not upcase x509-username-field for mixed-case arguments.

I revisited options.c to refine its brute-force upcasing behavior. Now, the
upcasing is done only if the option argument is all lowercase. Mixed-case
arguments and those with the "ext:" prefix are left unchanged. This
preserves the original intent of the "helpful" upcasing feature for
backwards compatibility while limiting its scope in a straightforward way.

Signed-off-by: Andris Kalnozols <andris@hpl.hp.com>
Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <53B1BDD8.8020705@karger.me>
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit f4e0ad82b0eaccce965074c1ceec2b7e3853dc0d)
doc/openvpn.8
src/openvpn/options.c