GUACAMOLE-1652: Only call SSL init functions when the library version requires it.

This commit is contained in:
James Muehlner 2022-07-30 00:06:48 +00:00
parent eee3ac092c
commit cdee93ae25

View File

@ -165,9 +165,11 @@ int guac_common_ssh_init(guac_client* client) {
CRYPTO_set_locking_callback(guac_common_ssh_openssl_locking_callback); CRYPTO_set_locking_callback(guac_common_ssh_openssl_locking_callback);
#endif #endif
/* Init OpenSSL */ #if OPENSSL_VERSION_NUMBER < 0x10100000L
/* Init OpenSSL - only required for OpenSSL Versions < 1.1.0 */
SSL_library_init(); SSL_library_init();
ERR_load_crypto_strings(); ERR_load_crypto_strings();
#endif
/* Init libssh2 */ /* Init libssh2 */
libssh2_init(0); libssh2_init(0);