summaryrefslogtreecommitdiff
path: root/system/mailx/openssl-1.1.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-15 02:44:58 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-15 02:44:58 +0000
commit35824ecc4f2a4cbd8170e2e41681400855239b09 (patch)
treeac86cbc90418439350421e65370a70e6c52a100b /system/mailx/openssl-1.1.patch
parent9e9c63dfc7673456279d0d2772f5c07476b0c113 (diff)
downloadpackages-35824ecc4f2a4cbd8170e2e41681400855239b09.tar.gz
packages-35824ecc4f2a4cbd8170e2e41681400855239b09.tar.bz2
packages-35824ecc4f2a4cbd8170e2e41681400855239b09.tar.xz
packages-35824ecc4f2a4cbd8170e2e41681400855239b09.zip
system/mailx: Update for OpenSSL 1.1
Diffstat (limited to 'system/mailx/openssl-1.1.patch')
-rw-r--r--system/mailx/openssl-1.1.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/system/mailx/openssl-1.1.patch b/system/mailx/openssl-1.1.patch
new file mode 100644
index 000000000..0c41ff1d6
--- /dev/null
+++ b/system/mailx/openssl-1.1.patch
@@ -0,0 +1,43 @@
+Remove EGD support no longer present in 1.1.
+
+Remove SSLv3 support.
+
+--- mailx-12.4/openssl.c.old 2020-01-15 02:20:57.711188031 +0000
++++ mailx-12.4/openssl.c 2020-01-15 02:34:43.412879382 +0000
+@@ -130,15 +130,7 @@
+ char *cp;
+ int state = 0;
+
+- if ((cp = value("ssl-rand-egd")) != NULL) {
+- cp = expand(cp);
+- if (RAND_egd(cp) == -1) {
+- fprintf(stderr, catgets(catd, CATSET, 245,
+- "entropy daemon at \"%s\" not available\n"),
+- cp);
+- } else
+- state = 1;
+- } else if ((cp = value("ssl-rand-file")) != NULL) {
++ if ((cp = value("ssl-rand-file")) != NULL) {
+ cp = expand(cp);
+ if (RAND_load_file(cp, 1024) == -1) {
+ fprintf(stderr, catgets(catd, CATSET, 246,
+@@ -156,6 +148,8 @@
+ }
+ state = 1;
+ }
++ } else {
++ RAND_poll();
+ }
+ return state;
+ }
+@@ -211,9 +205,7 @@
+
+ cp = ssl_method_string(uhp);
+ if (cp != NULL) {
+- if (equal(cp, "ssl3"))
+- method = SSLv3_client_method();
+- else if (equal(cp, "tls1"))
++ if (equal(cp, "tls1"))
+ method = TLSv1_client_method();
+ else {
+ fprintf(stderr, catgets(catd, CATSET, 244,