aboutsummaryrefslogtreecommitdiffstats
path: root/community/heirloom-mailx/libressl.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-10-07 14:30:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-10-10 12:04:38 +0000
commit54e1fae444b51e6fd3dfc6a73ee217e27ce444d8 (patch)
tree3068b05100fed3bd33f38aaac0fe7a23e3f91b72 /community/heirloom-mailx/libressl.patch
parent0bd907c304238145770069cc2ebd3bd869fdee0b (diff)
downloadaports-54e1fae444b51e6fd3dfc6a73ee217e27ce444d8.tar.bz2
aports-54e1fae444b51e6fd3dfc6a73ee217e27ce444d8.tar.xz
community/heirloom-mailx: rebuild against libressl
Diffstat (limited to 'community/heirloom-mailx/libressl.patch')
-rw-r--r--community/heirloom-mailx/libressl.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/heirloom-mailx/libressl.patch b/community/heirloom-mailx/libressl.patch
new file mode 100644
index 0000000000..ab8696a242
--- /dev/null
+++ b/community/heirloom-mailx/libressl.patch
@@ -0,0 +1,43 @@
+diff --git a/openssl.c b/openssl.c
+index b4e33fc..a7c57e7 100644
+--- a/openssl.c
++++ b/openssl.c
+@@ -135,6 +135,7 @@ ssl_rand_init(void)
+ char *cp;
+ int state = 0;
+
++#ifndef OPENSSL_NO_EGD
+ if ((cp = value("ssl-rand-egd")) != NULL) {
+ cp = expand(cp);
+ if (RAND_egd(cp) == -1) {
+@@ -143,7 +144,9 @@ ssl_rand_init(void)
+ cp);
+ } else
+ state = 1;
+- } else if ((cp = value("ssl-rand-file")) != NULL) {
++ } else
++#endif
++ if ((cp = value("ssl-rand-file")) != NULL) {
+ cp = expand(cp);
+ if (RAND_load_file(cp, 1024) == -1) {
+ fprintf(stderr, catgets(catd, CATSET, 246,
+@@ -216,11 +219,17 @@ ssl_select_method(const char *uhp)
+
+ cp = ssl_method_string(uhp);
+ if (cp != NULL) {
++#ifndef OPENSSL_NO_SSL2
+ if (equal(cp, "ssl2"))
+ method = SSLv2_client_method();
+- else if (equal(cp, "ssl3"))
++ else
++#endif
++#ifndef OPENSSL_NO_SSL3_METHOD
++ if (equal(cp, "ssl3"))
+ method = SSLv3_client_method();
+- else if (equal(cp, "tls1"))
++ else
++#endif
++ if (equal(cp, "tls1"))
+ method = TLSv1_client_method();
+ else {
+ fprintf(stderr, catgets(catd, CATSET, 244,