]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix the --client-cert-not-required feature
authorDavid Sommerseth <davids@redhat.com>
Wed, 30 Mar 2011 12:14:21 +0000 (14:14 +0200)
committerDavid Sommerseth <davids@redhat.com>
Thu, 31 Mar 2011 09:29:18 +0000 (11:29 +0200)
commit008a18e772bf1854f9a2102bef4b3d5b0a08a66b
treea46d27edb4b6f137a184f2d164e244e818154173
parentdc2ccc825c6952546132286c57b193d8bb9daacd
Fix the --client-cert-not-required feature

Commit 2e8337de248ef0b5b48cbb2964da0d5c3f28b15b introduced a new
feature for using other SSL certificate fields for authentication
than the CN field.

This commit introduced a bug, which made the verify_callback()
function getting called even if --client-cert-not-required was
enabled in the config.

The reason for this was that an 'else' statement was lacking a
couple of curly braces.  The offending commit in reality moved
the setup of the verify_callback() function out of the 'else'
statement.

Report-URL: https://community.openvpn.net/openvpn/ticket/108
Report-URL: https://forums.openvpn.net/topic7751.html
Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Jan Just Keijser <janjust@nikhef.nl>
ssl.c