mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
nail: add compatibility with openssl 1.1
Openssl 1.1 doesn't support SSL2 and does not define the OPENSSL_NO_SSL2 flag either. Also, it defaults to NO_EGD, so do not use EGD if it's not enabled in openssl. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
cp = ssl_method_string(uhp);
|
||||
if (cp != NULL) {
|
||||
+#ifndef OPENSSL_NO_SSL2
|
||||
+#if !defined(OPENSSL_NO_SSL2) && !OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
if (equal(cp, "ssl2"))
|
||||
method = SSLv2_client_method();
|
||||
- else if (equal(cp, "ssl3"))
|
||||
|
||||
Reference in New Issue
Block a user