1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

78 Commits

Author SHA1 Message Date
dmiller
6db5c9cb85 Bump copyright date 2025-02-26 17:44:43 +00:00
dmiller
136e1c6ed7 Lua 5.4 change: userdata created with 1 uservalue by default. Set to 0 when possible 2024-06-20 20:47:10 +00:00
dmiller
f999182d0f Bump date and reapply header templates 2024-02-28 18:46:45 +00:00
dmiller
6f6b2de214 Apply new license templates, bump copyright date 2023-04-14 17:11:46 +00:00
dmiller
1641a291e9 Fix a double-free due to uninitialized should_free in bignum_data_t 2022-10-06 17:28:39 +00:00
dmiller
d6bea8dcde Build based on OpenSSL version, not API level. Fixes #2516 2022-09-06 22:39:34 +00:00
dmiller
aa1f5b42f7 Avoid extra check for EC crypto, use OpenSSL-defined macros 2022-08-31 13:43:38 +00:00
dmiller
48eef5213f Fix incorrect constness for some OpenSSL versions 2022-08-31 13:43:37 +00:00
dmiller
140dd72415 Fix build with OpenSSL 3.0
Updated all OpenSSL code to OpenSSL 3.0 API with no deprecated functions. Some
NSE functions were changed:
* openssl.rc4_options and openssl.rc4 were removed in favor of openssl.encrypt
* openssl.bignum_pseudo_rand is now an alias for openssl.bignum_rand
* openssl.bignum_is_prime and openssl.bignum_is_safe_prime will now ignore the
  nchecks parameter, using a secure default instead.
2022-08-25 14:51:59 +00:00
dmiller
eed7b890c2 Enable EC crypto for NSE on Windows 2022-08-15 16:23:37 +00:00
dmiller
dd690b3e0b Bump copyright date and update some links [ci skip] 2022-02-18 17:38:46 +00:00
fyodor
3aec3f3a07 Update to latest copyright templates. Main change is that Insecure.Com LLC is now Nmap Software LLC 2021-11-23 16:04:37 +00:00
dmiller
ef8213a36c Reintegrate Nmap 7.90 release branch 2020-10-05 23:00:30 +00:00
dmiller
73ce19e7b6 Use Lua integers in more places where floats are unexpected. Fixes #1647 2019-06-26 20:13:43 +00:00
dmiller
ace7fbd0bd Fix a memory leak when getting SSL cert with RSA key in NSE 2019-06-20 23:11:10 +00:00
dmiller
d639a53088 Bump copyright date in license headers 2019-05-28 21:36:04 +00:00
dmiller
ab79382f93 Additional header includes for time_t, gettimeofday, timeval, etc. See #1317, #1363 2019-05-22 15:27:13 +00:00
dmiller
a0f55317f3 Fix inclusion of Lua headers. See #1355
We will need to do something similar for Ncat.
2018-10-16 05:18:31 +00:00
dmiller
e4f65348cb Use lua_createtable to prealloc some tables, saving time & memory 2018-06-28 03:43:25 +00:00
fyodor
ff62300249 Bump copyright dates to 2018 and slightly improve wording (doesn't change meaning) of Nmap license header text 2018-01-28 21:18:17 +00:00
dmiller
c72e3ac0d9 Extract RSA modulus along with exponent 2017-10-18 20:26:38 +00:00
dmiller
9c7ea727a7 Update license terms for 2017 2017-06-07 12:32:38 +00:00
dmiller
9b86dadb58 Remove deprecated calls from OpenSSL 1.1 API. Closes #630 2017-01-11 15:38:08 +00:00
fyodor
4bd67aa2fb Update the Nmap license/header text to reflect latest updates to docs/legal-notices.xml 2016-12-14 00:12:23 +00:00
dmiller
087fb7be04 Add X509v3 extension parsing to NSE's sslcert code. Show Subject Alternative Name. 2016-09-17 01:54:03 +00:00
dmiller
c321830302 Protect inclusion of nmap_config.h, which is not present on Windows 2016-09-12 19:25:20 +00:00
dmiller
182bcf8c1c Add compatibility with LibreSSL. Closes #543 2016-09-09 14:08:48 +00:00
dmiller
85e6ebc64e Fix EC cert handling. Fixes #541 2016-09-06 16:36:30 +00:00
dmiller
8779c1e376 Fix a crash in ssl-enum-ciphers when parsing unsupported cert types 2016-08-30 16:07:08 +00:00
vincent
a2b5a1a5f9 Check for EVP_PKEY_get1_EC_KEY(), based on @jer-gentoo's work 2016-08-02 12:20:06 +00:00
vincent
c4c93166f1 Correct usage of RSA_get0_key according to OpenSSL version 2016-08-02 11:55:04 +00:00
vincent
107f4f2e9b Correct problem 2016-08-02 11:47:04 +00:00
vincent
2080807052 Correct qualifiers for arguments of RSA_get0_key, by gvanem 2016-08-02 11:38:52 +00:00
vincent
aedd25c3a2 Add compatibility with OpenSSL 1.1.0 pre5 and previous versions
Add some checks to know which OpenSSL version is used, to be sure
the code follows the syntax of the version used (including 1.1.0).
2016-08-01 09:34:56 +00:00
dmiller
7aed1fd2ab Partially revert r36038: EC support only missing on RHEL 2016-07-27 20:35:00 +00:00
dmiller
3611aa0a6e Fix building on OpenSSL 1.0.1 and earlier due to missing EC crypto 2016-07-27 20:28:46 +00:00
dmiller
c71d8e8f4f Refactor some code for ECDH param parsing, fix a #ifdef (always was false) 2016-06-09 04:36:08 +00:00
dmiller
c8e8cf8f43 Return RSA exponent from parsed SSL certificates, as a bignum 2016-06-09 04:36:07 +00:00
dmiller
6e33d6ac3c Bump date in copyright headers 2016-04-04 15:38:44 +00:00
dmiller
e2bbf289d4 Display EC curve name in ssl-enum-ciphers
Closes #173. See http://seclists.org/nmap-dev/2015/q3/254
2015-09-17 13:00:23 +00:00
dmiller
68409b2226 Update copyright date to 2015 2015-06-03 13:01:29 +00:00
dmiller
b87d343443 Fix X509 cert date parsing for dates after 2049.
Reported by Teppo Turtiainen: http://seclists.org/nmap-dev/2015/q2/29

GeneralizedTime strings are 15 bytes (14 chars of date + 'Z'), not 14.
2015-04-09 13:07:34 +00:00
dmiller
2871ba3e6c New function, sslcert.parse_ssl_certificate
For reasons, the function is exported from nse_ssl_cert.cc into
nmap.socket, then included and documented in sslcert.lua because it fits
better there.
2014-11-05 05:55:52 +00:00
dmiller
aeae800545 Clean up line endings (stray \r) 2014-11-03 21:40:57 +00:00
tomsellers
e11e03fa50 Add the signature algorithm that was used to sign the target port's x509 (TLS) certificate to the output of ssl-cert.nse
http://seclists.org/nmap-dev/2014/q4/44
2014-10-25 18:56:38 +00:00
dmiller
5adfb3b1de Update copyright notice to 2014 2014-08-16 01:52:33 +00:00
jay
8d5ec9e310 Reapply r33420, r33421. Fix a missing right parenthesis. https://xkcd.com/859/ 2014-08-15 12:09:22 +00:00
fyodor
f6f59a7cd7 Auto regeneration with latest template files, etc. 2014-08-13 22:57:43 +00:00
jay
d4cf544df6 Fix a missing bracket at the end of the IMPORTANT NMAP LICENSE TERMS part in each file 2014-08-02 19:29:50 +00:00
jay
f5e438b966 Got rid of (unnecessary) spaces in blank lines in *.cc and *.h files.
sed -i 's/^\s*$//'
2014-06-19 11:36:10 +00:00