Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 519692 Details for
Bug 647832
www-client/lynx with dev-libs/openssl-1.1 - ../../../WWW/Library/Implementation/HTTP.c:172:17: error: too few arguments to function ‘SSL_CTX_new’
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
lynx-2.8.9_pre16-openssl-1.1-compat.patch
lynx-2.8.9_pre16-openssl-1.1-compat.patch (text/plain), 2.28 KB, created by
Quentin Minster
on 2018-02-16 06:47:57 UTC
(
hide
)
Description:
lynx-2.8.9_pre16-openssl-1.1-compat.patch
Filename:
MIME Type:
Creator:
Quentin Minster
Created:
2018-02-16 06:47:57 UTC
Size:
2.28 KB
patch
obsolete
>diff --git a/WWW/Library/Implementation/HTNews.c b/WWW/Library/Implementation/HTNews.c >index 6e38b51..7b27800 100644 >--- a/WWW/Library/Implementation/HTNews.c >+++ b/WWW/Library/Implementation/HTNews.c >@@ -2657,7 +2657,9 @@ static int HTLoadNews(const char *arg, > CTRACE((tfp, > "HTNews: Unable to complete SSL handshake for '%s', SSL_connect=%d, SSL error stack dump follows\n", > url, status)); >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > SSL_load_error_strings(); >+#endif > while ((SSLerror = ERR_get_error()) != 0) { > CTRACE((tfp, "HTNews: SSL: %s\n", > ERR_error_string(SSLerror, NULL))); >@@ -3072,7 +3074,9 @@ int HTNewsProxyConnect(int sock, > CTRACE((tfp, > "HTNews: Unable to complete SSL handshake for '%s', SSL_connect=%d, SSL error stack dump follows\n", > url, status)); >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > SSL_load_error_strings(); >+#endif > while ((SSLerror = ERR_get_error()) != 0) { > CTRACE((tfp, "HTNews: SSL: %s\n", ERR_error_string(SSLerror, NULL))); > } >diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c >index 581cb5e..dab2ff6 100644 >--- a/WWW/Library/Implementation/HTTP.c >+++ b/WWW/Library/Implementation/HTTP.c >@@ -48,6 +48,10 @@ > #ifdef USE_SSL > #ifdef USE_OPENSSL_INCL > #include <openssl/x509v3.h> >+#if OPENSSL_VERSION_NUMBER >= 0x10100000L >+#define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER >+#define ASN1_STRING_data ASN1_STRING_get0_data >+#endif > #endif > #ifdef USE_GNUTLS_INCL > #include <gnutls/x509.h> >@@ -173,8 +177,12 @@ SSL *HTGetSSLHandle(void) > X509_set_default_verify_paths(ssl_ctx->cert); > } > #else >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > SSLeay_add_ssl_algorithms(); > if ((ssl_ctx = SSL_CTX_new(SSLv23_client_method())) != NULL) { >+#else >+ if ((ssl_ctx = SSL_CTX_new(TLS_client_method())) != NULL) { >+#endif > #ifdef SSL_OP_NO_SSLv2 > SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL | SSL_OP_NO_SSLv2); > #else >@@ -961,7 +969,9 @@ static int HTLoadHTTP(const char *arg, > CTRACE((tfp, > "HTTP: Unable to complete SSL handshake for '%s', SSL_connect=%d, SSL error stack dump follows\n", > url, status)); >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > SSL_load_error_strings(); >+#endif > while ((SSLerror = ERR_get_error()) != 0) { > CTRACE((tfp, "HTTP: SSL: %s\n", ERR_error_string(SSLerror, NULL))); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 647832
:
519690
| 519692