Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 522472 Details for
Bug 605026
www-client/elinks-0.12_pre6-r2 with dev-libs/openssl-1.1.0c - configure: error: OpenSSL not found - conftest.c:151: undefined reference to `SSLeay_add_ssl_algorithms'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
elinks-0.13_pre_pre20180225-openssl-1.1.0-compat.patch
file_605026.txt (text/plain), 1.80 KB, created by
Quentin Minster
on 2018-03-05 20:48:56 UTC
(
hide
)
Description:
elinks-0.13_pre_pre20180225-openssl-1.1.0-compat.patch
Filename:
MIME Type:
Creator:
Quentin Minster
Created:
2018-03-05 20:48:56 UTC
Size:
1.80 KB
patch
obsolete
>diff --git a/configure.ac b/configure.ac >index c7057a7..82becfa 100644 >--- a/configure.ac >+++ b/configure.ac >@@ -1123,6 +1123,9 @@ else > if test "$cf_result" != yes; then > AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h>]], [[SSLeay_add_ssl_algorithms()]])],[cf_result=yes],[cf_result=no]) > fi >+ if test "$cf_result" != yes; then >+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h>]], [[OPENSSL_init_ssl(0, NULL)]])],[cf_result=yes],[cf_result=no]) >+ fi > fi > done > >diff --git a/src/network/ssl/socket.c b/src/network/ssl/socket.c >index dfde1c4..8ab0a23 100644 >--- a/src/network/ssl/socket.c >+++ b/src/network/ssl/socket.c >@@ -247,7 +247,11 @@ static int > match_uri_host_ip(const unsigned char *uri_host, > ASN1_OCTET_STRING *cert_host_asn1) > { >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > const unsigned char *cert_host_addr = ASN1_STRING_data(cert_host_asn1); >+#else >+ const unsigned char *cert_host_addr = ASN1_STRING_get0_data(cert_host_asn1); >+#endif > struct in_addr uri_host_in; > #ifdef CONFIG_IPV6 > struct in6_addr uri_host_in6; >diff --git a/src/network/ssl/ssl.c b/src/network/ssl/ssl.c >index a8038b9..1205ba5 100644 >--- a/src/network/ssl/ssl.c >+++ b/src/network/ssl/ssl.c >@@ -95,7 +95,9 @@ init_openssl(struct module *module) > } > #endif > >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > SSLeay_add_ssl_algorithms(); >+#endif > context = SSL_CTX_new(SSLv23_client_method()); > SSL_CTX_set_options(context, SSL_OP_ALL); > SSL_CTX_set_default_verify_paths(context); >@@ -471,7 +473,11 @@ void > random_nonce(unsigned char buf[], size_t size) > { > #ifdef USE_OPENSSL >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > RAND_pseudo_bytes(buf, size); >+#else >+ RAND_bytes(buf, size); >+#endif > #elif defined(CONFIG_GNUTLS) > gcry_create_nonce(buf, size); > #else
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 605026
:
459136
|
459138
|
459238
|
459240
|
459242
|
500770
|
502474
| 522472