Commit 890a0cee authored by Bernard Spil's avatar Bernard Spil

HBSD: mail/fetchmail: Fix build without SSLv3

Obtained from: fetchmail/fetchmail@a2ae6f8dSigned-off-by: 's avatarBernard Spil <brnrd@freebsd.org>
parent 5dadfd8f
$OpenBSD: patch-config_h_in,v 1.2 2015/08/25 17:44:09 jca Exp $
Fixed upstream
https://gitlab.com/fetchmail/fetchmail/commit/a2ae6f8d15d7caf815d7bdd13df833fd1b2af5cc
--- config.h.in.orig Fri Jul 17 22:18:55 2015
+++ config.h.in Fri Jul 17 22:19:14 2015
@@ -53,6 +53,10 @@
if you don't. */
#undef HAVE_DECL_SSLV2_CLIENT_METHOD
+/* Define to 1 if you have the declaration of `SSLv3_client_method', and to 0
+ if you don't. */
+#undef HAVE_DECL_SSLV3_CLIENT_METHOD
+
/* Define to 1 if you have the declaration of `strerror', and to 0 if you
don't. */
#undef HAVE_DECL_STRERROR
$OpenBSD: patch-configure_ac,v 1.6 2015/08/25 17:44:09 jca Exp $
Fixed upstream
https://gitlab.com/fetchmail/fetchmail/commit/a2ae6f8d15d7caf815d7bdd13df833fd1b2af5cc
--- configure.ac.orig Fri Jul 17 22:20:20 2015
+++ configure.ac Fri Jul 17 22:20:34 2015
@@ -803,6 +803,7 @@ fi
case "$LIBS" in *-lssl*)
AC_CHECK_DECLS([SSLv2_client_method],,,[#include <openssl/ssl.h>])
+ AC_CHECK_DECLS([SSLv3_client_method],,,[#include <openssl/ssl.h>])
;;
esac
$OpenBSD: patch-socket_c,v 1.9 2015/08/25 17:44:09 jca Exp $
Fixed upstream
https://gitlab.com/fetchmail/fetchmail/commit/a2ae6f8d15d7caf815d7bdd13df833fd1b2af5cc
--- socket.c.orig Fri Jul 17 22:01:09 2015
+++ socket.c Fri Jul 17 22:19:47 2015
@@ -914,7 +914,12 @@ int SSLOpen(int sock, char *mycert, char *mykey, const
return -1;
#endif
} else if(!strcasecmp("ssl3",myproto)) {
+#if HAVE_DECL_SSLV3_CLIENT_METHOD + 0 > 0
_ctx[sock] = SSL_CTX_new(SSLv3_client_method());
+#else
+ report(stderr, GT_("Your operating system does not support SSLv3.\n"));
+ return -1;
+#endif
} else if(!strcasecmp("tls1",myproto)) {
_ctx[sock] = SSL_CTX_new(TLSv1_client_method());
} else if (!strcasecmp("ssl23",myproto)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment