patch-socket_c 865 B

1234567891011121314151617181920
  1. --- fetchmail-6.4.23.orig/socket.c 2021-08-28 11:13:58.000000000 +0200
  2. +++ fetchmail-6.4.23/socket.c 2021-11-12 23:58:36.082986247 +0100
  3. @@ -966,17 +966,9 @@ static int OSSL10X_proto_version_logic(i
  4. report(stderr, GT_("Your OpenSSL version does not support TLS v1.2.\n"));
  5. return -1;
  6. #endif
  7. -#if defined(TLS1_3_VERSION)
  8. - } else if (!strcasecmp("tls1.3", *myproto)) {
  9. - _ctx[sock] = SSL_CTX_new(TLSv1_3_client_method());
  10. - } else if (!strcasecmp("tls1.3+", *myproto)) {
  11. - *myproto = NULL;
  12. - *avoid_ssl_versions |= SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2;
  13. -#else
  14. } else if(!strcasecmp("tls1.3",*myproto) || !strcasecmp("tls1.3+", *myproto)) {
  15. report(stderr, GT_("Your OpenSSL version does not support TLS v1.3.\n"));
  16. return -1;
  17. -#endif
  18. } else if (!strcasecmp("ssl23", *myproto)
  19. || 0 == strcasecmp("auto", *myproto))
  20. {