Commit graph

269 commits

Author SHA1 Message Date
Gerhard Rieger
11d1e9e11f Use PACKET_IGNORE_OUTGOING when available; a few corrections and renamings for raw sockets and ancillary messages 2023-10-26 19:12:38 +02:00
Gerhard Rieger
47af17dbf2 Interface flags now defined with INTERFACE, inherited by TUN 2023-10-26 19:08:26 +02:00
Gerhard Rieger
8c9b185890 New option children-shutup 2023-10-26 18:50:29 +02:00
Gerhard Rieger
c2196d6f15 Output statistics per option and SIGUSR1 2023-10-26 18:42:41 +02:00
Gerhard Rieger
2af6089436 Socat option -r,-R path specifications allow use of variables 2023-10-26 16:57:39 +02:00
Gerhard Rieger
9faf068949 New options so-rcvtimeo, so-sndtimeo 2023-10-26 16:48:37 +02:00
Gerhard Rieger
454a499401 Added option http-version 2023-10-26 16:36:26 +02:00
Gerhard Rieger
282596dc9d Moved multicast related code from xioopts.c to xio-ip.c and xio-ip6.c 2023-10-26 14:57:44 +02:00
Gerhard Rieger
d36f78d854 Formatted help output; address keywords in help now uppercase 2023-10-26 14:56:50 +02:00
Gerhard Rieger
797d0f9695 Catch the case of empty SNI host to prevent OpenSSL error 2023-10-26 14:52:53 +02:00
Gerhard Rieger
522e82351f Removed obsolete xio.help and obsolete parts of test.sh 2023-09-30 11:47:13 +02:00
Gerhard Rieger
eeabf31e04 Option -S for controlling signals' logging 2023-09-30 11:45:53 +02:00
Gerhard Rieger
02483ff39e Replaced SIGUSR1 with socketpair for synchronization between parent and child processes on RECVFROM type addresses 2023-09-30 11:34:43 +02:00
Gerhard Rieger
557f299b82 Print warning messages per default; new options -d0..-d4 2023-09-30 09:42:11 +02:00
Gerhard Rieger
f0ca732bd9 Version 1.7.4.5 2023-06-13 16:19:52 +02:00
Gerhard Rieger
920d77847d Do not try to remove abstract UNIX socket entries after use 2023-06-12 21:29:45 +02:00
Gerhard Rieger
2dadc1010f -r, -R now with CLOEXEC, and warn on write problems 2023-06-12 21:27:51 +02:00
Gerhard Rieger
77ef274f76 test.sh: Improved template; prepared namesFAIL, -d (DEBUG) 2023-06-12 21:07:12 +02:00
Gerhard Rieger
5033ec1ffd Test if EXEC only passes stdio 2023-06-12 20:48:39 +02:00
Gerhard Rieger
0cf1275349 test.sh: Check if ports are free before using them for tests 2023-06-12 20:47:21 +02:00
Gerhard Rieger
a9a2931258 test.sh: Some timing adaptations 2023-06-12 20:27:55 +02:00
Gerhard Rieger
b289d66ea8 test.sh: help; option --expect-fail to ignore specified failures 2023-06-12 20:27:41 +02:00
Gerhard Rieger
d355da98bc Fixed restore of STDIO tty on Solaris 2023-06-12 14:34:31 +02:00
Gerhard Rieger
75922a9189 Filan: Fixed TCP/UDP displaying; fixed a few syntax error messages 2023-06-12 08:04:43 +02:00
Gerhard Rieger
67027cee59 Fixed a bug in dalan that could lead to SIGSEGV 2023-06-11 22:47:22 +02:00
Gerhard Rieger
30ace16174 Test of EXEC,SYSTEM with socktype=<SOCK_DGRAM> 2023-06-11 22:27:12 +02:00
Gerhard Rieger
db80b7752a Corrected printf format for type socklen_t in two places; minor corrs in test.sh 2022-10-30 15:50:44 +01:00
Gerhard Rieger
2882ac6976 VSOCK: short alias names, env var with peer info 2022-10-30 11:25:19 +01:00
Gerhard Rieger
6340127060 Fixed PTYs on Solaris 2022-10-29 22:32:14 +02:00
Gerhard Rieger
e0c669028d Filan prints symlink target 2022-10-29 21:07:09 +02:00
Gerhard Rieger
893d031cc2 Tightened syntax checks to discover bad numerical arguments 2022-10-29 20:56:24 +02:00
Gerhard Rieger
d8ee49007e Combined Bind() calls in xiobind(); fixed UDP-SENDTO lowport bug 2022-10-29 20:27:53 +02:00
Gerhard Rieger
56a56e127c test.sh checks for SCTP in kernel 2022-10-29 20:24:09 +02:00
Gerhard Rieger
cf81901fe5 The rawer option no longer clears CREAD 2022-10-29 19:22:18 +02:00
Gerhard Rieger
ed4780553f Fix TCP address with options connect-timeout and retry 2022-10-29 17:10:39 +02:00
Gerhard Rieger
09969852e9 Added tests of failure handling on invalid FS access 2022-10-29 15:07:52 +02:00
Gerhard Rieger
26f1f8a2eb Adapted test.sh for musl libc 2022-10-29 12:05:41 +02:00
Gerhard Rieger
e6c03a4c94 Fixed some testing (test.sh) issues 2022-10-19 20:56:27 +02:00
Gerhard Rieger
08666f631f The socktype option was documented as type option 2022-01-08 21:41:25 +01:00
Gerhard Rieger
c3081fbba9 test.sh: many corrections, esp.for AIX, SunOS 2022-01-06 17:13:27 +01:00
Gerhard Rieger
f820690967 Minor corrections 2021-10-31 18:43:00 +01:00
Gerhard Rieger
4cebaf45e4 Some minor non functional corrections 2021-10-31 11:55:01 +01:00
Gerhard Rieger
1a1cbb1598 Option -R did not only dump right-to-left, but also left-to-right traffic 2021-10-31 11:45:05 +01:00
Gerhard Rieger
a390dfc547 ABSTRACT-LISTEN with option user calls fchown() 2021-10-31 11:39:47 +01:00
Gerhard Rieger
ea5beb8e75 Catch service resolution failure 2021-10-31 11:35:52 +01:00
Gerhard Rieger
1477334905 OpenSSL server could be crashed by client cert with IPv6 address in SubjectAltname 2021-10-31 11:30:14 +01:00
Gerhard Rieger
e78e911cbb Solve a problem with overlapping socket and openssl parameters 2021-10-31 10:28:41 +01:00
Gerhard Rieger
ff51262e78 Fixed in test.sh a few issues reported by shellcheck 2021-10-31 10:21:28 +01:00
Gerhard Rieger
dc7afeb0f5 Prevent the TIMESTAMP tests from sporadically failing due do seconds overflow 2021-10-31 10:18:50 +01:00
Gerhard Rieger
6b9736472c OpenSSL file transfer failed 2021-01-10 13:44:58 +01:00
Gerhard Rieger
45ad4018b0 More corrections to recent changes and from systematic tests 2021-01-03 16:56:50 +01:00
Gerhard Rieger
87935b7089 Some test.sh corrections 2021-01-01 18:27:37 +01:00
Gerhard Rieger
1502f0cdcb Added VSOCK stream addresses 2020-12-31 15:34:56 +01:00
Gerhard Rieger
1c7ddfef73 Option proxy-authorization-file 2020-12-31 15:26:14 +01:00
Gerhard Rieger
50bdb453dd UDP-DATAGRAM no longer checks peerport by default 2020-12-31 15:22:40 +01:00
Gerhard Rieger
13ac417410 Option accept-timeout (listen-timeout) 2020-12-31 15:00:13 +01:00
Gerhard Rieger
aa2b9c00b2 Added SNI support to OPENSSL-CONNECT, with options no-sni, snihost 2020-12-31 14:49:43 +01:00
Gerhard Rieger
e765898d38 New options -r, -R for raw data dumps 2020-12-31 13:23:54 +01:00
Gerhard Rieger
6128ea36ac OpenSSL client checks SubjectAltName IP addresses 2020-12-31 12:19:17 +01:00
Gerhard Rieger
d1b809b4ab DTLS over UDP 2020-12-30 20:59:04 +01:00
Gerhard Rieger
10680c8aad New option setsockopt-listen using dalan 2020-12-29 16:48:05 +01:00
Gerhard Rieger
0dccf48d69 GOPEN handles UNIX seqpacket sockets 2020-12-29 05:30:52 +01:00
Gerhard Rieger
d9d320cb47 Corrected UNIX client NAMED options to work on bind address 2020-12-29 05:22:41 +01:00
Gerhard Rieger
55518fa690 Align buffer for read() with flag O_DIRECT 2020-12-29 05:17:53 +01:00
Gerhard Rieger
de2f2c471b OpenSSL options min-version, max-version 2020-12-28 12:38:52 +01:00
Gerhard Rieger
beed38655f ext2-* options are renamed to fs-* 2020-12-28 12:37:49 +01:00
Gerhard Rieger
f34e8a4dc1 Mitigated race condition of SYSTEM,EXEC child processes 2020-12-28 11:10:03 +01:00
Gerhard Rieger
2e0b0a0eff SCTP service name resolution falls back to socktype and protocol 0 2020-12-28 00:43:29 +01:00
Gerhard Rieger
ecac86a280 Solved more testing issues 2020-12-09 20:54:42 +01:00
Gerhard Rieger
b62ff0c005 Socat address parser read over end of string when there was unbalanced quoting 2020-10-30 09:13:51 +01:00
Gerhard Rieger
8e6b341f59 Fixed possible integer overflow with option -b 2020-10-30 09:13:21 +01:00
Gerhard Rieger
0c65370ae5 test.sh: Archlinux: No which; changes on ip,ss commands 2020-10-30 08:22:08 +01:00
Gerhard Rieger
152de04f7c test.sh: Ubuntu 20.04 requires 2048 bit certificates 2020-10-29 13:50:51 +01:00
Gerhard Rieger
f8985bc1ab test.sh: Fixed renogotiation tests for newer OpenSSL 2020-10-29 13:38:45 +01:00
Gerhard Rieger
f2d17f0949 test.sh: Adapted some OpenSSL tests to modified OpenSSL behaviour 2020-10-29 13:33:34 +01:00
Gerhard Rieger
c6c8ff784c test.sh: OpenSSL s_server now neglect TCPs half close feature 2020-10-29 13:16:14 +01:00
Gerhard Rieger
c4d7718bca test.sh: listCANT and some minor corrections 2020-10-29 13:10:34 +01:00
Gerhard Rieger
9de26f1d05 minor corrections, not affecting binaries 2020-01-05 16:00:17 +01:00
Gerhard Rieger
e310bb1cfd Fixed regression: use of ^^ or ,, in test.sh 2020-01-04 10:32:58 +01:00
Gerhard Rieger
12f7833a8f Socat printed the "socket ... is at EOF" message multiple times 2020-01-04 10:28:59 +01:00
Gerhard Rieger
3be18bdc1f IP-SENDTO:*:6 now passes getaddrinfo() without "ai_socktype not supported" 2020-01-01 14:50:29 +01:00
Gerhard Rieger
5ebf36038f Under certain circumstances, options of the first address were applied to the second address 2019-12-30 10:27:46 +01:00
Gerhard Rieger
0e371ca704 Doc: contributors; test.sh with better IPv6 feature tests 2019-04-05 22:24:01 +02:00
Gerhard Rieger
da09ef32df configure.ac: SSLv2_*_method dependend on TLS_*method; test.sh: avoid hanging of a few sec tests 2019-04-04 10:58:10 +02:00
Gerhard Rieger
b3325144f8 Fixed new IPv6 range code for platforms without s6_addr32 component 2019-03-13 12:44:35 +01:00
Gerhard Rieger
7a621dd3a2 More corrections to test.sh: language; netstat; reuseaddr; usleep; force IPv4; timeout 2019-03-12 21:04:51 +01:00
Gerhard Rieger
710c54a254 Permit -dd; print a useful error message when single character options appear to be merged 2019-03-03 15:08:02 +01:00
Gerhard Rieger
fbd72c295d Shell scripts are now headed with: env /usr/bin/env bash 2019-03-03 13:59:49 +01:00
Gerhard Rieger
14f3e4fed8 Disable option openssl-method 2019-03-03 13:20:12 +01:00
Gerhard Rieger
181228cf53 Use ss,ip when available instead of netstat,ifconfig 2019-03-03 12:04:50 +01:00
Gerhard Rieger
42864922e7 Socat only checked the first character of the host name to decide if it is an IPv4 address 2019-03-03 11:06:02 +01:00
Gerhard Rieger
479d9cbbda With TCP6-LISTEN etc. the range option failed 2019-03-03 11:03:33 +01:00
Gerhard Rieger
b5be579187 Option ipv6-join-group is in PH_PASTSOCKET 2019-03-03 10:01:32 +01:00
Gerhard Rieger
e1a5931827 Parent process might have been killed by signal to child 2019-03-03 09:32:22 +01:00
Gerhard Rieger
9f5abda361 The async-signal-safe fix used internally FD 3 and FD 4 which could conflict with options fdin,fdout 2019-02-24 23:18:38 +01:00
Gerhard Rieger
2bd582713d OpenSSL tests failed on actual Linux distributions 2019-02-24 22:53:34 +01:00
Gerhard Rieger
81d83e10d3 test.sh: Show a warning when phase-1 (insecure phase) of a security test fails 2019-02-24 22:46:14 +01:00
Gerhard Rieger
cef0e039a8 version 1.7.3.2 2017-01-23 12:53:12 +01:00
Gerhard Rieger
19ebd413bb Corrections to test.sh that reveal a mistake with IPV6_TCLASS 2017-01-21 10:59:43 +01:00
Gerhard Rieger
72b05700e4 Corrections in docu and test.sh 2017-01-15 12:23:07 +01:00