<commit_before>--- a/openssl.c.orig	2014-07-22 20:59:16.024655378 +0200
+++ b/openssl.c	2014-07-22 21:00:45.754482770 +0200
@@ -137,11 +137,13 @@ ssl_rand_init(void)
 
 	if ((cp = value("ssl-rand-egd")) != NULL) {
 		cp = expand(cp);
+#ifdef HAVE_OPENSSL_RAND_EGD
 		if (RAND_egd(cp) == -1) {
 			fprintf(stderr, catgets(catd, CATSET, 245,
 				"entropy daemon at \"%s\" not available\n"),
 					cp);
 		} else
+#endif
 			state = 1;
 	} else if ((cp = value("ssl-rand-file")) != NULL) {
 		cp = expand(cp);
@@ -216,9 +218,7 @@ ssl_select_method(const char *uhp)
 
 	cp = ssl_method_string(uhp);
 	if (cp != NULL) {
-		if (equal(cp, "ssl2"))
-			method = SSLv2_client_method();
-		else if (equal(cp, "ssl3"))
+		if (equal(cp, "ssl3"))
 			method = SSLv3_client_method();
 		else if (equal(cp, "tls1"))
 			method = TLSv1_client_method();<commit_msg>mailx: fix for libressl-2.3.<commit_after>--- a/openssl.c.orig	2014-07-22 20:59:16.024655378 +0200
+++ b/openssl.c	2014-07-22 21:00:45.754482770 +0200
@@ -137,11 +137,13 @@ ssl_rand_init(void)
 
 	if ((cp = value("ssl-rand-egd")) != NULL) {
 		cp = expand(cp);
+#ifdef HAVE_OPENSSL_RAND_EGD
 		if (RAND_egd(cp) == -1) {
 			fprintf(stderr, catgets(catd, CATSET, 245,
 				"entropy daemon at \"%s\" not available\n"),
 					cp);
 		} else
+#endif
 			state = 1;
 	} else if ((cp = value("ssl-rand-file")) != NULL) {
 		cp = expand(cp);
@@ -216,9 +218,7 @@ ssl_select_method(const char *uhp)
 
 	cp = ssl_method_string(uhp);
 	if (cp != NULL) {
-		if (equal(cp, "ssl2"))
-			method = SSLv2_client_method();
-		else if (equal(cp, "ssl3"))
+		if (equal(cp, "ssl3"))
 			method = SSLv3_client_method();
 		else if (equal(cp, "tls1"))
 			method = TLSv1_client_method();

--- a/openssl.c.orig	2016-03-30 17:03:49.491514269 +0200
+++ b/openssl.c	2016-03-30 17:04:03.026491689 +0200
@@ -219,7 +219,7 @@ ssl_select_method(const char *uhp)
 	cp = ssl_method_string(uhp);
 	if (cp != NULL) {
 		if (equal(cp, "ssl3"))
-			method = SSLv3_client_method();
+			method = SSLv23_client_method();
 		else if (equal(cp, "tls1"))
 			method = TLSv1_client_method();
 		else {
{'fraction_non_alphanumeric': 0.197624703087886, 'fraction_numerical': 0.11306413301662707, 'mean_word_length': 3.51931330472103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2216159', 'n_tokens_mistral': 1144, 'n_tokens_neox': 925, 'n_words': 184}