Bugzilla – Attachment 3206 Details for
Bug 2931
Incorrect test against OPENSSL_VERSION_NUMBER
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Test for OPENSSL_init_crypto before using
openssl-init-crypto.patch (text/plain), 1.02 KB, created by
Darren Tucker
on 2018-11-16 13:51:56 AEDT
(
hide
)
Description:
Test for OPENSSL_init_crypto before using
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2018-11-16 13:51:56 AEDT
Size:
1.02 KB
patch
obsolete
>diff --git a/configure.ac b/configure.ac >index 53a16c39..3f7fe2cd 100644 >--- a/configure.ac >+++ b/configure.ac >@@ -2710,6 +2710,7 @@ if test "x$openssl" = "xyes" ; then > ]) > # LibreSSL/OpenSSL 1.1x API > AC_CHECK_FUNCS([ \ >+ OPENSSL_init_crypto \ > DH_get0_key \ > DH_get0_pqg \ > DH_set0_key \ >diff --git a/openbsd-compat/openssl-compat.c b/openbsd-compat/openssl-compat.c >index 590b66d1..5ade8f0b 100644 >--- a/openbsd-compat/openssl-compat.c >+++ b/openbsd-compat/openssl-compat.c >@@ -76,11 +76,14 @@ ssh_OpenSSL_add_all_algorithms(void) > ENGINE_load_builtin_engines(); > ENGINE_register_all_complete(); > >-#if OPENSSL_VERSION_NUMBER < 0x10100000L >- OPENSSL_config(NULL); >-#else >+#if defined(HAVE_OPENSSL_INIT_CRYPTO) && \ >+ defined(OPENSSL_INIT_ADD_ALL_CIPHERS) && \ >+ defined(OPENSSL_INIT_ADD_ALL_DIGESTS) && \ >+ defined(OPENSSL_INIT_LOAD_CONFIG) > OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS | > OPENSSL_INIT_ADD_ALL_DIGESTS | OPENSSL_INIT_LOAD_CONFIG, NULL); >+#else >+ OPENSSL_config(NULL); > #endif > } > #endif
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 2931
:
3204
| 3206