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

nse_openssl.cc is making use of deprecated function #1776

Open
rfuentess opened this issue Oct 8, 2019 · 0 comments

Comments

@rfuentess
Copy link

commented Oct 8, 2019

I just did a clean installation of nmap-7.80 on a Linux system, with libssl-dev already installed

At the moment of running make I got the following warning (gcc v7.4.0)

nse_openssl.cc: In function ‘int l_rand_pseudo_bytes(lua_State*)’:
nse_openssl.cc:268:34: warning: ‘int RAND_pseudo_bytes(unsigned char*, int)’ is deprecated [-Wdeprecated-declarations]
   RAND_pseudo_bytes( result, len );
                                  ^
In file included from /usr/include/openssl/e_os2.h:13:0,
                 from /usr/include/openssl/bn.h:14,
                 from nse_openssl.cc:9:
/usr/include/openssl/rand.h:44:1: note: declared here
 DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))

I had this specific settings as I was testing some scripts, including scripts/http-vuln-cve2014-3704.nse which require OpenSSL. The script seems to be working fine.

@rfuentess rfuentess changed the title nse_openssl.cc: Deprecated function nse_openssl.cc is making use of deprecated function Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.