You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
773 B

  1. From edfc2e18ef069ba600c8f4632ce1e3dc94a0669a Mon Sep 17 00:00:00 2001
  2. From: Eneas U de Queiroz <cote2004-github@yahoo.com>
  3. Date: Fri, 19 Oct 2018 10:04:24 -0300
  4. Subject: [PATCH 2/2] Fix OPENSSL_init_crypto call for openssl < 1.1
  5. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
  6. diff --git a/openbsd-compat/openssl-compat.c b/openbsd-compat/openssl-compat.c
  7. index 8b4a3627..590b66d1 100644
  8. --- a/openbsd-compat/openssl-compat.c
  9. +++ b/openbsd-compat/openssl-compat.c
  10. @@ -76,7 +76,7 @@ ssh_OpenSSL_add_all_algorithms(void)
  11. ENGINE_load_builtin_engines();
  12. ENGINE_register_all_complete();
  13. -#if OPENSSL_VERSION_NUMBER < 0x10001000L
  14. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  15. OPENSSL_config(NULL);
  16. #else
  17. OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS |