support client-cert-not-required with polarssl
hi,
the attached patch adds support for --client-cert-not-required with polarssl. please apply.
thanks,
Signature · 3 lines
[-] mkdir /nonexistent
From 968ddad1f32641f0218e5362092a4b2066529405 Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Sat, 8 Jun 2013 07:00:16 +0200
Subject: [PATCH] Add support for client-cert-not-required for PolarSSL.
--- src/openvpn/ssl_polarssl.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)
src/openvpn/ssl_polarssl.c +14 -2
@@ -533,8 +533,20 @@ void key_state_ssl_init(struct key_state_ssl *ks_ssl,ssl_set_own_cert ( ks_ssl->ctx, ssl_ctx->crt_chain, ssl_ctx->priv_key );/* Initialise SSL verification */ -ssl_set_authmode (ks_ssl->ctx,SSL_VERIFY_REQUIRED ); -ssl_set_verify (ks_ssl->ctx, verify_callback, session); +#if P2MP_SERVER +if (session->opt->ssl_flags &SSLF_CLIENT_CERT_NOT_REQUIRED ) + { +msg (M_WARN ,"WARNING: POTENTIALLY DANGEROUS OPTION " +"--client-cert-not-required may accept clients which do not present " +"a certificate" ); + } + else +#endif + { +ssl_set_authmode (ks_ssl->ctx,SSL_VERIFY_REQUIRED ); +ssl_set_verify (ks_ssl->ctx, verify_callback, session); + } +/* TODO: PolarSSL does not currently support sending the CA chain to the client */ ssl_set_ca_chain (ks_ssl->ctx, ssl_ctx->ca_chain,NULL ,NULL );
Signature · 1 line
1.7.9.5
Quoted 9 lines · Tamas TEVESZ
hi,
the attached patch adds support for --client-cert-not-required with polarssl. please apply.
thanks,
ACK
-Steffan
[Openvpn-devel] [PATCH applied] Re: Add support for client-cert-not-required for PolarSSL.
In reply to Tamas TEVESZFrom: David Sommerseth <[email protected]...>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Your patch has been applied to the master branch.
commit f6264deb82b31ce398a688da22018608d321c670
Author: Tamas TEVESZ Date: Sat Jun 8 07:00:16 2013 +0200
Add support for client-cert-not-required for PolarSSL.
Signed-off-by: Tamas TEVESZ <[email protected]...>
Acked-by: Steffan Karger <[email protected]...>
Message-Id: [email protected]...
URL: http://article.gmane.org/gmane.network.openvpn.devel/7667
Acked-by: Steffan Karger <[email protected]...>
Message-Id: [email protected]...
URL: http://article.gmane.org/gmane.network.openvpn.devel/7667
Acked-by: Steffan Karger <[email protected]...>
Message-Id: [email protected]...
URL: http://article.gmane.org/gmane.network.openvpn.devel/7667
Acked-by: Steffan Karger <[email protected]...>
Message-Id: [email protected]...
URL: http://article.gmane.org/gmane.network.openvpn.devel/7667
Acked-by: Steffan Karger <[email protected]...>
Message-Id: [email protected]...
URL: http://article.gmane.org/gmane.network.openvpn.devel/7667
Signed-off-by: David Sommerseth <[email protected]...>- --
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAlG3VqMACgkQDC186MBRfrrDpACeLKn2xV2BS7yNIvL669Yp6NJl 32oAn0nMYbnIKsjgzakACDx358c33U27
=kXhX
-----END PGP SIGNATURE-----
Re: [Openvpn-devel] [PATCH applied] Re: Add support for client-cert-not-required for PolarSSL.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 24 lines · David Sommerseth
Your patch has been applied to the master branch.
commit
f6264deb82b31ce398a688da22018608d321c670Author: Tamas
TEVESZ Date: Sat Jun 8 07:00:16 2013 +0200Add support for client-cert-not-required for PolarSSL.
Signed-off-by Tamas TEVESZ <[email protected]...> Acked-by: SteffanKarger <[email protected]...> Message-Id:
[email protected]... URL:
http://article.gmane.org/gmane.network.openvpn.devel/7667 Acked-by:
Steffan Karger <[email protected]...> Message-Id:
[email protected]... URL:
http://article.gmane.org/gmane.network.openvpn.devel/7667 Acked-by:
Steffan Karger <[email protected]...> Message-Id:
[email protected]... URL:
http://article.gmane.org/gmane.network.openvpn.devel/7667 Acked-by:
Steffan Karger <[email protected]...> Message-Id:
[email protected]... URL:
http://article.gmane.org/gmane.network.openvpn.devel/7667 Acked-by:
Steffan Karger <[email protected]...> Message-Id:
[email protected]... URL:
http://article.gmane.org/gmane.network.openvpn.devel/7667
Quoted 1 line
Signed-off-by David Sommerseth <[email protected]...>
Sorry about the ugly response! I've fixed my script. The commit message looks nice, though.
- --
kind regards,
David Sommerseth
- --
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlG3W+UACgkQDC186MBRfroEkwCfSywtHd+te9JkF61RF/bqvRGX JeAAn0px5cM7qgjo4nCuCvFliq4LwGO1
=qNWq
-----END PGP SIGNATURE-----