freebsd-ports/mail/fetchmail/files/patch-fetchmail.c
Bernard Spil 0917233fb0 mail/fetchmail: Fix build without SSLv3
- Fix build with OpenSSL 1.1 and LibreSSL
  - Stop using pkg-install/pkg-deinstall scripts
  - Use pkg-plist keywords
  - Use GSSAPI ports framework
  - Change X11, POP2 options to use options framework

PR:             210130
Submitted by:	freebsd-ports@charlieroot.de
Reviewed by:	Corey Halpin <chalpin@cs.wisc.edu> (maintainer)
Approved by:	Corey Halpin <chalpin@cs.wisc.edu> (maintainer)
2016-06-21 06:14:41 +00:00

26 lines
539 B
C

--- fetchmail.c.orig 2013-04-23 20:00:45 UTC
+++ fetchmail.c
@@ -50,6 +50,10 @@
#include <arpa/nameser.h>
#include <resolv.h>
+#ifdef SSL_ENABLE
+#include <openssl/ssl.h>
+#endif
+
#ifndef ENETUNREACH
#define ENETUNREACH 128 /* Interactive doesn't know this */
#endif /* ENETUNREACH */
@@ -263,6 +267,12 @@ int main(int argc, char **argv)
#ifdef SSL_ENABLE
"+SSL"
#endif
+#ifdef OPENSSL_NO_SSL2
+ "-SSLv2"
+#endif
+#ifdef OPENSSL_NO_SSL3_METHOD
+ "-SSLv3"
+#endif
#ifdef OPIE_ENABLE
"+OPIE"
#endif /* OPIE_ENABLE */