Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLSv1_client_method() issue when compiling #18

Open
H-ISO opened this issue Jun 3, 2019 · 1 comment
Open

TLSv1_client_method() issue when compiling #18

H-ISO opened this issue Jun 3, 2019 · 1 comment

Comments

@H-ISO
Copy link

H-ISO commented Jun 3, 2019

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.

@heildampf
Copy link

Same too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants