GUACAMOLE-1652: Only call SSL init functions when the library version requires it.
This commit is contained in:
parent
eee3ac092c
commit
cdee93ae25
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user