]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Properly require --key even if defined(MANAGMENT_EXTERNAL_KEY)
authorArne Schwabe <arne@rfc2549.org>
Mon, 26 Nov 2012 14:33:09 +0000 (15:33 +0100)
committerDavid Sommerseth <davids@redhat.com>
Thu, 29 Nov 2012 20:47:57 +0000 (21:47 +0100)
commit9447858c38c5cf51265c7eab3445d7d5fb4f7bba
treebd248c04994865435eded971f85b803784e137fd
parent9e6b85797214187f7fb2c4255f2678f2ba74168a
Properly require --key even if defined(MANAGMENT_EXTERNAL_KEY)

When specifying --tls-client --cert ... without a --key (or --pkcs11)
option, OpenVPN should complain:
"You must define private key file (--key)...".  Ensure that this
works even when compiling with MANAGMENT_EXTERNAL_KEY.

Also fix the other instance where this logic is broken

Orginal-Patch-by: Found by Joachim Schipper <joachim.schipper@fox-it.com>
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: 1353940389-31075-1-git-send-email-arne@rfc2549.org
URL: http://article.gmane.org/gmane.network.openvpn.devel/7143
Signed-off-by: David Sommerseth <davids@redhat.com>
(cherry picked from commit feca0900dd00577779ab02f2e52b41eb3dab935f)
src/openvpn/options.c