blob: 6bad433ea6c4a5e5d41e6ae53b5ebba277e4bc68 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From: Hilko Bengen <bengen@debian.org>
2Date: Wed, 27 Apr 2011 00:18:42 +0200
3Subject: Patched out SSL2 support since it is no longer supported by OpenSSL.
4
5This patch is taken from
6ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz
7
8Upstream-Status: Inappropriate [upstream is dead]
9---
10 mailx.1 | 2 +-
11 openssl.c | 4 +---
12 2 files changed, 2 insertions(+), 4 deletions(-)
13
14diff --git a/mailx.1 b/mailx.1
15index 417ea04..a02e430 100644
16--- a/mailx.1
17+++ b/mailx.1
18@@ -3575,7 +3575,7 @@ Only applicable if SSL/TLS support is built using OpenSSL.
19 .TP
20 .B ssl-method
21 Selects a SSL/TLS protocol version;
22-valid values are `ssl2', `ssl3', and `tls1'.
23+valid values are `ssl3', and `tls1'.
24 If unset, the method is selected automatically,
25 if possible.
26 .TP
27diff --git a/openssl.c b/openssl.c
28index b4e33fc..44fe4e5 100644
29--- a/openssl.c
30+++ b/openssl.c
31@@ -216,9 +216,7 @@ ssl_select_method(const char *uhp)
32
33 cp = ssl_method_string(uhp);
34 if (cp != NULL) {
35- if (equal(cp, "ssl2"))
36- method = SSLv2_client_method();
37- else if (equal(cp, "ssl3"))
38+ if (equal(cp, "ssl3"))
39 method = SSLv3_client_method();
40 else if (equal(cp, "tls1"))
41 method = TLSv1_client_method();