101-remove_polarssl_debug_call.patch 766 B

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