1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
dmiller
f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller
7e30cb9c4a Only run SSL nsock tests if configured with OpenSSL 2015-02-11 04:55:36 +00:00
henri
a913288efa Added missing variable declaration, as reported by Gisle Vanem 2014-08-10 13:22:09 +00:00
henri
a00aa0a460 New nsock regression test: TestConnectFailure.
Trigger a ENETUNREACH error on connect() and check if properly reported.

As of now the test fails, the error isn't delivered.
2014-06-05 19:44:00 +00:00
henri
457e9dcf62 Added extra cancelation tests.
Schedule and immediately cancel TCP, UDP and SSL connects.
These tests are now grouped in a "cancel" module.
2013-10-23 19:04:10 +00:00
henri
4fd3cc2f10 Allow NSE_TYPE_CONNECT_SSL to be canceled.
This fixes a really bad bug that seems to have been there for a while. Canceling
a nsock connect SSL operation fails with fatal(). I have never seen it in real
life though.

Added a corresponding unit test.
2013-09-15 10:52:07 +00:00
henri
456430c676 Windows compatibility fix.
Initialize winsock before starting nsock test suite.
Initial patch from Gisle Vanem.
2013-08-13 12:36:28 +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
170a85f677 Don't use ANSI color sequences on windows.
Pointed out by Gisle Vanem. Fixed it in a way that makes it easy to disable on
other systems as well.
2013-08-10 20:19:38 +00:00
henri
40b11064e4 Use socket_strerror() for error reporting.
Report and patch by Gisle Vanem.
2013-08-06 20:10:49 +00:00
henri
9bfe6e46cc Display the test name before running it.
This makes it easier to identify a test that hangs.
2013-06-15 12:33:31 +00:00
henri
8b7f91cd0f Moved gh_lists tests from nsock/src/ to nsock/tests/ 2013-05-22 14:35:24 +00:00
henri
3776852557 Added simple TCP connect test and setup ncat listeners.
The listeners are ncat-based echo servers:
  - UDP
  - TCP
  - TCP + SSL
2013-05-10 08:26:48 +00:00
henri
4862bbcbb9 Added a nsock test module for loglevels. 2013-05-08 18:08:38 +00:00
henri
b51a943a48 Added a minimal regression test suite for nsock. 2013-05-08 11:52:28 +00:00