You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Robert,
when compiling on KALI, I have received:
tcp.c: In function ‘tcp_tls_connect’:
tcp.c:412:3: warning: ‘TLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
g_ssl_ctx = SSL_CTX_new(TLSv1_client_method());
^~~~~~~~~
In file included from /usr/include/openssl/e_os2.h:13,
from /usr/include/openssl/ssl.h:15,
from tcp.c:29:
/usr/include/openssl/ssl.h:1879:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))
^~~~~~~~~~~~~~~~~~
Hello Robert,
when compiling on KALI, I have received:
tcp.c: In function ‘tcp_tls_connect’:
tcp.c:412:3: warning: ‘TLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
g_ssl_ctx = SSL_CTX_new(TLSv1_client_method());
^~~~~~~~~
In file included from /usr/include/openssl/e_os2.h:13,
from /usr/include/openssl/ssl.h:15,
from tcp.c:29:
/usr/include/openssl/ssl.h:1879:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))
^~~~~~~~~~~~~~~~~~
Changing line 412 in tcp.c to
g_ssl_ctx = SSL_CTX_new(TLS_client_method());
solved the issue (as per recommendation on https://www.openssl.org/docs/man1.1.0/man3/TLSv1_client_method.html.
The text was updated successfully, but these errors were encountered: