Skip to content
Permalink
Browse files
Avoid deprecated OPENSSL_config when using 1.1.x
OpenSSL 1.1.x soft-deprecated OPENSSL_config in favour of
OPENSSL_init_crypto; pointed out by Jakub Jelen
  • Loading branch information
djmdjm committed Oct 15, 2018
1 parent 797cdd9 commit 4e23dee
Showing 1 changed file with 6 additions and 0 deletions.
@@ -75,7 +75,13 @@ ssh_OpenSSL_add_all_algorithms(void)
/* Enable use of crypto hardware */
ENGINE_load_builtin_engines();
ENGINE_register_all_complete();

#if OPENSSL_VERSION_NUMBER < 0x10001000L
OPENSSL_config(NULL);
#else
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS |
OPENSSL_INIT_ADD_ALL_DIGESTS | OPENSSL_INIT_LOAD_CONFIG);
#endif
}
#endif

0 comments on commit 4e23dee

Please sign in to comment.