You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.5 KiB

  1. commit 57e2606f70fa8d26fe4b5563ba72a6c7f2a25655
  2. Author: Lukas Tribus <lukas@ltri.eu>
  3. Date: Tue Mar 5 23:14:32 2019 +0100
  4. BUG/MINOR: ssl: fix warning about ssl-min/max-ver support
  5. In 84e417d8 ("MINOR: ssl: support Openssl 1.1.1 early callback for
  6. switchctx") the code was extended to also support OpenSSL 1.1.1
  7. (code already supported BoringSSL). A configuration check warning
  8. was updated but with the wrong logic, the #ifdef needs a && instead
  9. of an ||.
  10. Reported in #54.
  11. Should be backported to 1.8.
  12. (cherry picked from commit 1aabc939780d5eab1f88089d01fb077ad9315c65)
  13. Signed-off-by: William Lallemand <wlallemand@haproxy.org>
  14. (cherry picked from commit f407d16b8f4cf2afb148668a23a1ba1cc4dd942a)
  15. Signed-off-by: William Lallemand <wlallemand@haproxy.org>
  16. diff --git a/src/ssl_sock.c b/src/ssl_sock.c
  17. index 7736c324..afdb1fce 100644
  18. --- a/src/ssl_sock.c
  19. +++ b/src/ssl_sock.c
  20. @@ -7418,7 +7418,7 @@ static int parse_tls_method_minmax(char **args, int cur_arg, struct tls_version_
  21. static int ssl_bind_parse_tls_method_minmax(char **args, int cur_arg, struct proxy *px, struct ssl_bind_conf *conf, char **err)
  22. {
  23. -#if (OPENSSL_VERSION_NUMBER < 0x10101000L) || !defined(OPENSSL_IS_BORINGSSL)
  24. +#if (OPENSSL_VERSION_NUMBER < 0x10101000L) && !defined(OPENSSL_IS_BORINGSSL)
  25. ha_warning("crt-list: ssl-min-ver and ssl-max-ver are not supported with this Openssl version (skipped).\n");
  26. #endif
  27. return parse_tls_method_minmax(args, cur_arg, &conf->ssl_methods, err);