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:
@@ -0,0 +1,14 @@
|
||||
--- a/openssl.c
|
||||
+++ b/openssl.c
|
||||
@@ -137,7 +137,11 @@ ssl_rand_init(void)
|
||||
|
||||
if ((cp = value("ssl-rand-egd")) != NULL) {
|
||||
cp = expand(cp);
|
||||
+#ifndef OPENSSL_NO_EGD
|
||||
if (RAND_egd(cp) == -1) {
|
||||
+#else
|
||||
+ if (1) {
|
||||
+#endif
|
||||
fprintf(stderr, catgets(catd, CATSET, 245,
|
||||
"entropy daemon at \"%s\" not available\n"),
|
||||
cp);
|
||||
Reference in New Issue
Block a user