Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 494248 Details for
Bug 630804
net-libs/libssh2-1.8.0 - add dev-libs/openssl-1.1.0 support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libssh2-1.8.0 fix build with openssl-1.1
libssh2-1.8.0-openssl-1.1-fix.patch (text/plain), 2.49 KB, created by
Yuriy Ilinykh
on 2017-09-12 13:24:24 UTC
(
hide
)
Description:
libssh2-1.8.0 fix build with openssl-1.1
Filename:
MIME Type:
Creator:
Yuriy Ilinykh
Created:
2017-09-12 13:24:24 UTC
Size:
2.49 KB
patch
obsolete
>From c423b543ca45d6caca7b94763bf65ff79d07e811 Mon Sep 17 00:00:00 2001 >From: Marcel Raad <MarcelRaad@users.noreply.github.com> >Date: Wed, 24 May 2017 19:21:22 +0200 >Subject: [PATCH] openssl: fix build with OpenSSL 1.1 API (#176) > >When building with OPENSSL_API_COMPAT=0x10100000L, OpenSSL_add_all_algorithms >and OpenSSL_add_all_ciphers don't exist. The corresponding functionality is >handled automatically with OpenSSL 1.1. >--- > src/openssl.c | 4 ++++ > src/openssl.h | 6 ++++++ > 2 files changed, 10 insertions(+) > >diff --git a/src/openssl.c b/src/openssl.c >index f10f2921..25cef082 100644 >--- a/src/openssl.c >+++ b/src/openssl.c >@@ -1056,6 +1056,7 @@ _libssh2_pub_priv_keyfile(LIBSSH2_SESSION *session, > "Unable to extract public key from private key " > "file: Unable to open private key file"); > } >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > if (!EVP_get_cipherbyname("des")) { > /* If this cipher isn't loaded it's a pretty good indication that none > * are. I have *NO DOUBT* that there's a better way to deal with this >@@ -1064,6 +1065,7 @@ _libssh2_pub_priv_keyfile(LIBSSH2_SESSION *session, > */ > OpenSSL_add_all_ciphers(); > } >+#endif > BIO_reset(bp); > pk = PEM_read_bio_PrivateKey(bp, NULL, NULL, (void*)passphrase); > BIO_free(bp); >@@ -1132,6 +1134,7 @@ _libssh2_pub_priv_keyfilememory(LIBSSH2_SESSION *session, > if (!bp) { > return -1; > } >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > if (!EVP_get_cipherbyname("des")) { > /* If this cipher isn't loaded it's a pretty good indication that none > * are. I have *NO DOUBT* that there's a better way to deal with this >@@ -1140,6 +1143,7 @@ _libssh2_pub_priv_keyfilememory(LIBSSH2_SESSION *session, > */ > OpenSSL_add_all_ciphers(); > } >+#endif > BIO_reset(bp); > pk = PEM_read_bio_PrivateKey(bp, NULL, NULL, (void*)passphrase); > BIO_free(bp); >diff --git a/src/openssl.h b/src/openssl.h >index 2bd80b96..d8874286 100644 >--- a/src/openssl.h >+++ b/src/openssl.h >@@ -226,10 +226,16 @@ int _libssh2_md5_init(libssh2_md5_ctx *ctx); > #define libssh2_hmac_cleanup(ctx) HMAC_cleanup(ctx) > #endif > >+#if OPENSSL_VERSION_NUMBER >= 0x10100000L >+#define libssh2_crypto_init() \ >+ ENGINE_load_builtin_engines(); \ >+ ENGINE_register_all_complete() >+#else > #define libssh2_crypto_init() \ > OpenSSL_add_all_algorithms(); \ > ENGINE_load_builtin_engines(); \ > ENGINE_register_all_complete() >+#endif > > #define libssh2_crypto_exit() >
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 630804
: 494248 |
494250