openvpn: update to 2.3.11
[openwrt/openwrt.git] / package / network / services / openvpn / patches / 101-remove_polarssl_debug_call.patch
1 openvpn: remove call to PolarSSL debug function
2
3 OpenVPN >=2.3.11 uses PolarSSL debug functions for improved logging.
4 This requires that PolarSSL is built with POLARSSL_DEBUG_C, which increases
5 its size significantly.
6
7 This change does not impact OpenVPN operation, see:
8 https://sourceforge.net/p/openvpn/mailman/message/35153943/
9
10 Signed-off-by: Magnus Kroken <mkroken@gmail.com>
11
12 --- a/src/openvpn/ssl_polarssl.c
13 +++ b/src/openvpn/ssl_polarssl.c
14 @@ -742,7 +742,7 @@ void key_state_ssl_init(struct key_state
15 if (polar_ok(ssl_init(ks_ssl->ctx)))
16 {
17 /* Initialise SSL context */
18 - debug_set_threshold(3);
19 + /*debug_set_threshold(3);*/
20 ssl_set_dbg (ks_ssl->ctx, my_debug, NULL);
21 ssl_set_endpoint (ks_ssl->ctx, ssl_ctx->endpoint);