Adding patches to make fdm build using OpenSSL 1.1
This commit is contained in:
28
net-mail/fdm/files/openssl-1.1.patch
Normal file
28
net-mail/fdm/files/openssl-1.1.patch
Normal file
@ -0,0 +1,28 @@
|
||||
diff -ruN fdm-1.9.orig/configure.ac fdm-1.9/configure.ac
|
||||
--- fdm-1.9.orig/configure.ac 2015-06-05 20:30:34.000000000 +0200
|
||||
+++ fdm-1.9/configure.ac 2019-06-04 13:41:51.686892288 +0200
|
||||
@@ -83,7 +83,7 @@
|
||||
AC_MSG_ERROR("libcrypto not found")
|
||||
fi
|
||||
AC_SEARCH_LIBS(
|
||||
- SSL_library_init,
|
||||
+ SSL_SESSION_new,
|
||||
[ssl],
|
||||
found_libssl=yes,
|
||||
found_libssl=no
|
||||
diff -ruN fdm-1.9.orig/fdm.c fdm-1.9/fdm.c
|
||||
--- fdm-1.9.orig/fdm.c 2015-09-14 16:40:25.000000000 +0200
|
||||
+++ fdm-1.9/fdm.c 2019-06-04 13:44:42.559415945 +0200
|
||||
@@ -717,8 +717,12 @@
|
||||
}
|
||||
conf.lock_file = lock;
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
SSL_library_init();
|
||||
SSL_load_error_strings();
|
||||
+#else
|
||||
+ OPENSSL_init_ssl(0, NULL);
|
||||
+#endif
|
||||
|
||||
/* Filter account list. */
|
||||
TAILQ_INIT(&actaq);
|
Reference in New Issue
Block a user