IXWebSocket icon indicating copy to clipboard operation
IXWebSocket copied to clipboard

Migration from OpenSSL 1.1.0g to 3.1.5

Open pnovitskii opened this issue 1 year ago • 1 comments

xwebsocket/IXSocketOpenSSL.cpp: In member function ‘void ix::SocketOpenSSL::openSSLInitialize()’: ixwebsocket/IXSocketOpenSSL.cpp:129:16: error: ‘OpenSSL_add_ssl_algorithms’ was not declared in this scope 129 | (void) OpenSSL_add_ssl_algorithms(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ixwebsocket/IXSocketOpenSSL.cpp:130:16: error: ‘SSL_load_error_strings’ was not declared in this scope; did you mean ‘ERR_load_ERR_strings’? 130 | (void) SSL_load_error_strings(); | ^~~~~~~~~~~~~~~~~~~~~~ | ERR_load_ERR_strings xwebsocket/IXSocketOpenSSL.cpp: In static member function ‘static void ix::SocketOpenSSL::openSSLLockingCallback(int, int, const char*, int)’: /ixwebsocket/IXSocketOpenSSL.cpp:140:20: error: ‘CRYPTO_LOCK’ was not declared in this scope; did you mean ‘CRYPTO_RWLOCK’? 140 | if (mode & CRYPTO_LOCK) | ^~~~~~~~~~~ | CRYPTO_RWLOCK ixwebsocket/IXSocketOpenSSL.cpp: In member function ‘virtual bool ix::SocketOpenSSL::accept(std::string&)’: ixwebsocket/IXSocketOpenSSL.cpp:703:13: error: ‘SSL_set_ecdh_auto’ was not declared in this scope; did you mean ‘SSL_set_dh_auto’? 703 | SSL_set_ecdh_auto(_ssl_connection, 1); | ^~~~~~~~~~~~~~~~~ | SSL_set_dh_auto

I am using QBS. Can someone help me with this?

pnovitskii avatar May 28 '24 15:05 pnovitskii

There must be existing ifdef for openssl ; can you try to use them to ifdef out the deprecated functions ?

bsergean avatar Jun 19 '24 14:06 bsergean