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
d43df98ab1
Nsock: Use separate SSL_CTX for SSL vs DTLS
2022-08-25 16:29:49 +00:00
dmiller
dd690b3e0b
Bump copyright date and update some links [ci skip]
2022-02-18 17:38:46 +00:00
dmiller
3e08021083
Don't rely on -1 return value from SSL_read, just check SSL_get_error() directly
2021-12-14 18:36:55 +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
009b63b6a9
Use gh_heap_remove instead of gh_heap_pop when result not needed.
2020-10-13 19:13:31 +00:00
dmiller
ef8213a36c
Reintegrate Nmap 7.90 release branch
2020-10-05 23:00:30 +00:00
dmiller
f6d21da5cd
Only get SSL options if we use them, currently for NO_SSLv2
2020-09-10 16:25:10 +00:00
nnposter
b1d39d00d4
Skip TLS/SSL retries when SSL_OP_NO_SSLv2 is a no-op
...
OpenSSL option SSL_OP_NO_SSLv2 was retired with version 1.1.0
When the initial SSL handshake fails, nmap performs several additional retries
with option SSL_OP_NO_SSLv2 enabled. Since the option is ignored since OpenSSL
version 1.1.0 then the retries are largely pointless and sometimes even DoS-ing
targets.
Closes #1873 , fixes #1488 , closes #1489
2020-01-09 21:16:08 +00:00
dmiller
e01ddaf1e8
Avoid retrying iod_read if we already got ENOTSOCK.
2019-12-30 16:14:10 +00:00
dmiller
c7932d2fc6
Don't break out of loop on just any error, since loop condition expects to test for EINTR. #1834
2019-12-30 16:14:09 +00:00
dmiller
d639a53088
Bump copyright date in license headers
2019-05-28 21:36:04 +00:00
dmiller
7b523f0643
Don't try to reconnect SSLv2 over DTLS (UDP). Fixes #1543
2019-04-08 22:29:47 +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
fdfc36778b
Add DTLS and ALPN support to Ncat. Closes #446
2017-07-29 05:55:30 +00:00
dmiller
2065d752bb
Change EV_EXCEPT handling.
...
Original patch by Henri Doreau: http://seclists.org/nmap-dev/2017/q1/252
2017-06-19 22:58:23 +00:00
dmiller
9c7ea727a7
Update license terms for 2017
2017-06-07 12:32:38 +00:00
dmiller
a668a21b7a
Make Nsock handle all connect errors without fatal
2017-03-20 17:12:40 +00:00
tudor
1e1f744186
Added IOCP integration for Nsock, engine IOCP is the default engine on Windows
2016-08-22 19:15:13 +00:00
tudor
63b31682f4
Reverted the IOCP integration
2016-08-11 18:58:03 +00:00
tudor
1aa7958e23
Added IOCP integration for Nsock
2016-08-09 12:44:55 +00:00
dmiller
74cade6f39
Avoid some theoretical null pointer derefs
2016-07-30 03:54:00 +00:00
dmiller
a752c2265a
Adjust indents to avoid confusion. Fixes #396 . whitespace only.
2016-06-01 16:51:50 +00:00
dmiller
f38b959593
Avoid clobbering nsiod.peer with junk data if recvfrom doesn't set src_addr
2016-05-13 02:13:25 +00:00
dmiller
6e33d6ac3c
Bump date in copyright headers
2016-04-04 15:38:44 +00:00
dmiller
616cf9730e
clear session data before attempting a reconnect without SSLv2-compatibility. Fixes #318 . Fixes #308
2016-03-12 23:26:26 +00:00
dmiller
ee048d5349
Avoid printf on NULL pointer if no string is registered for the error code.
2016-01-04 16:48:09 +00:00
henri
b55ff2d68f
Don't associate nsock logging info to a nspool.
...
Make current loglevel and current log callback global
to the library. Attaching them to the nsock pool doesn't
bring any benefit and prevents from logging activity in
code sections that don't have access to a pool (such as
proxy chain specification parsing).
Updated external calls and nsock tests accordingly.
2015-06-27 08:21:53 +00:00
henri
b75233ce98
Consistently renamed nsi_XXX calls into nsock_iod_XXX
...
This is part of the effort to make nsock expose only
nsock_ prefixed symbols and simplify the API.
2015-06-27 08:21:33 +00:00
henri
0348359f60
Enforce nsock naming scheme.
...
convert nsp_* calls into nsock_pool_*. Separate words with underscores
where appropriate.
2015-06-27 08:21:16 +00:00
dmiller
68409b2226
Update copyright date to 2015
2015-06-03 13:01:29 +00:00
fyodor
f6f59a7cd7
Auto regeneration with latest template files, etc.
2014-08-13 22:57:43 +00:00
henri
ccf6e15b90
Nsock early error reporting.
...
Report finished (likely failed) events as early as possible. Because the
corresponding IODs can have no I/O activity, they wouldn't be flagged as active
by the I/O engines and the events could end up being delivered at shutdown only
(or never).
Reported by d33tah on http://seclists.org/nmap-dev/2014/q2/409
2014-06-11 20:14:16 +00:00
henri
d13dab54c3
Replaced internal opaque types by structs.
2014-05-21 19:59:42 +00:00
dmiller
3f0d0c16f9
Spellcheck on Nmap, Nsock, Nbase source files
2014-02-20 18:44:12 +00:00
henri
ba239a8610
Get rid of a level of indentation
2013-11-06 18:52:06 +00:00
henri
853aaff586
Manage expiration times via a heap queue.
...
This prevents nsock from iterating over the whole list of events at
each runloop, thus improving performance.
It made it necessary to have pointers from the msevents to the event
lists they belong to. The patch therefore also changes gh_list from
autonomous containers to embedded structures.
Added unit tests accordingly and cosmetic changes to make things look
more consistent.
2013-08-10 23:59:30 +00:00
henri
23a58a1bc8
Minor style fixes.
2013-07-31 19:01:25 +00:00
henri
105ea877b2
Update error message.
...
Report errors to dev@nmap.org .
2013-07-31 19:01:17 +00:00
henri
5d8fdc74a6
Cleanup conditionally compiled expressions.
2013-07-31 19:01:12 +00:00
henri
098c64a1de
Removed occurences of `assert(0);'
...
Replaced them with `fatal()' so that nsock can compile w/ NDEBUG.
2013-07-31 18:46:57 +00:00
fyodor
83fb10ec56
Update the Nmap copyright/license files. This isn't the new Nmap Public Source License we've been discussing on the list, but rather just a 'quick patch' to hopefully prevent some of the abuse we've been seeing from companies lately. More details on the changes will be posted to the dev list. Also, the copyright year was updated to 2013 (which is the only change to Nsock license statements).
2013-07-28 22:05:05 +00:00
henri
a493296c54
Code cleanup.
...
Made get_peeraddr_string() return "peer unspecified" if peerlen <= 0.
This saves a handful duplicate lines that did the check externally.
2013-06-15 12:33:27 +00:00
henri
28af8f519f
Consistent spacing for switch (<condition>).
2013-05-12 13:40:01 +00:00
henri
ce01e2040a
Refactored code.
...
A switch/case reads easier than a if/else if/else block
to handle multiple cases.
2013-05-12 13:39:53 +00:00
henri
81fda37f89
New function msevent_timedout().
2013-05-12 13:39:45 +00:00
henri
d383df2847
More style fixes.
2013-05-03 21:25:53 +00:00
henri
23dcad8ea4
Removed redundant code. Style fixes.
2013-05-03 20:41:56 +00:00
david
d50afbca7d
Fix some format string mismatches (int versus long int).
2013-02-22 00:45:55 +00:00