- Add support for building with OpenSSL 1.1 (bsc#1055252) * add 0001-bug-7361-Allow-building-against-OpenSSL-1.1.0.patch * add spamassassin-dont_use_SSLv3_methods.patch - Fix build with Perl 5.26 * https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7367 * add 0001-Fix-bug-7367-Don-t-assume-cwd-.-is-in-INC-it-may-be-.patch OBS-URL: https://build.opensuse.org/request/show/519715 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=100
29 lines
978 B
Diff
29 lines
978 B
Diff
Index: Mail-SpamAssassin-3.4.1/spamc/libspamc.c
|
|
===================================================================
|
|
--- Mail-SpamAssassin-3.4.1.orig/spamc/libspamc.c 2015-04-28 21:56:59.000000000 +0200
|
|
+++ Mail-SpamAssassin-3.4.1/spamc/libspamc.c 2017-08-30 16:05:14.426823560 +0200
|
|
@@ -1216,7 +1216,11 @@ int message_filter(struct transport *tp,
|
|
if (flags & SPAMC_TLSV1) {
|
|
meth = TLSv1_client_method();
|
|
} else {
|
|
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
|
+ meth = TLS_client_method(); /* default */
|
|
+#else
|
|
meth = SSLv3_client_method(); /* default */
|
|
+#endif
|
|
}
|
|
SSL_load_error_strings();
|
|
ctx = SSL_CTX_new(meth);
|
|
@@ -1604,7 +1608,11 @@ int message_tell(struct transport *tp, c
|
|
if (flags & SPAMC_USE_SSL) {
|
|
#ifdef SPAMC_SSL
|
|
SSLeay_add_ssl_algorithms();
|
|
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
|
+ meth = TLS_client_method();
|
|
+#else
|
|
meth = SSLv3_client_method();
|
|
+#endif
|
|
SSL_load_error_strings();
|
|
ctx = SSL_CTX_new(meth);
|
|
#else
|