]> git.ipfire.org Git - thirdparty/openvpn.git/commit
polarssl: fix --client-cert-not-required
authorSteffan Karger <steffan@karger.me>
Thu, 15 Oct 2015 22:43:14 +0000 (00:43 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 22 Oct 2015 18:07:40 +0000 (20:07 +0200)
commit444a93eab38d117d4f802e95a318d71ea886bcc6
tree5a1b403ff54b13090079aec66be696eafe8ec36b
parent41e4b67a229e774ebc57a882c386e10d80e10e7e
polarssl: fix --client-cert-not-required

PolarSSL 1.3 determines whether to use a client key/cert based on the
private key and/or certificate structs being allocated or not.  We
previously would always allocate the structs in
tls_ctx_{client,server}_new(), which made polarssl clients without a
client key/cert (can also be mgmt-external-key or pkcs11) fail to connect.

Note that this bug is not present in OpenVPN 2.3, because PolarSSL 1.2
does not contain the 'pk' abtraction layer and therefore behaves slightly
different.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1444948995-18720-2-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10287
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_polarssl.c