Commit graph

390 commits

Author SHA1 Message Date
Gerhard Rieger
25cef1c540 Corrected gettimeofday() handling 2021-10-31 13:04:12 +01:00
Gerhard Rieger
4cebaf45e4 Some minor non functional corrections 2021-10-31 11:55:01 +01:00
Gerhard Rieger
29207daf38 Added missing closing parenthesis in socat.yo 2021-10-31 11:54:42 +01:00
Gerhard Rieger
d54f810b63 Added doc of OpenSSL options min-proto-version etc. 2021-10-31 11:53:51 +01:00
Gerhard Rieger
d84c22be7a Corrected handling of IP_RECVERR 2021-10-31 11:50:19 +01:00
Gerhard Rieger
bc32acb5fe Print a message when readbytes option causes EOF 2021-10-31 11:48:41 +01:00
Gerhard Rieger
39e24c2b06 The call "socat -r - PIPE" traced to file ./- instead of issuing a syntax error 2021-10-31 11:47:53 +01:00
Gerhard Rieger
2fe44bbd78 Fixed -r, -R to named pipe "No such device or address" error 2021-10-31 11:46:38 +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
3efbf71430 Corrected a typo in configure.ac that broke option --enable-openssl-base 2021-10-31 11:32:27 +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
e9c055b750 Print VSOCK warning only with VSOCK-LISTEN 2021-10-31 10:44:58 +01:00
Gerhard Rieger
e78e911cbb Solve a problem with overlapping socket and openssl parameters 2021-10-31 10:28:41 +01:00
Gerhard Rieger
072377c68c Fixed a few minor coding issues 2021-10-31 10:26:40 +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
196d74752d Version 1.7.4.1 2021-01-10 13:45:27 +01:00
Gerhard Rieger
6b9736472c OpenSSL file transfer failed 2021-01-10 13:44:58 +01:00
Gerhard Rieger
4124e733c6 Fixed compilation failure on 32bit FreeBSD and other due to int64_t being long long 2021-01-10 13:34:46 +01:00
Gerhard Rieger
0a115feadc Version 1.7.4.0 2021-01-03 22:46:40 +01:00
Gerhard Rieger
b7a277472b With OPENSSL_API_COMPAT=0x10000000L the files openssl/dh.h, openssl/bn.h must be included 2021-01-03 07:43:00 +01:00
Gerhard Rieger
9209312c3c Added printf formats for uint16_t etc 2021-01-03 07:42:23 +01:00
Gerhard Rieger
dabcc7f3d5 Preferred backend for TUN is UDP, not TCP 2021-01-01 18:27:18 +01:00
Gerhard Rieger
cc3cd744d9 Address UDP-RECV does not support option fork 2021-01-01 18:27:04 +01:00
Gerhard Rieger
82f5321204 SSL_read,SSL_write errors sometimes stated SSL_connect 2021-01-01 18:24:50 +01:00
Gerhard Rieger
cb4400bf94 Help text showed two parameters for UDP4-RECVFROM address, but only <port> is allowed 2021-01-01 18:21:54 +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
583e14d7fa New option ip-add-source-membership 2020-12-31 15:14:37 +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
d109e3131b Added option ip-transparent (socket option IP_TRANSPARENT) 2020-12-31 13:29:42 +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
6635e159c4 Fixed filan -s, added -S 2020-12-31 11:57:11 +01:00
Gerhard Rieger
d1b809b4ab DTLS over UDP 2020-12-30 20:59:04 +01:00
Gerhard Rieger
ff8de6c5cd Prevent error loop on RECVFROM addresses with fork 2020-12-29 16:50:47 +01:00
Gerhard Rieger
10680c8aad New option setsockopt-listen using dalan 2020-12-29 16:48:05 +01:00
Gerhard Rieger
411b658939 Increased maximum option length from 511 to 2047 bytes 2020-12-29 05:31:28 +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
5570bf4d62 Fixed hang on race condition with UDP-RECV and fork 2020-12-29 05:18:57 +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
bb764784f3 Added configure option --enable-openssl-base 2020-12-28 00:41:47 +01:00
Gerhard Rieger
1190e8018e Substitute strndup() when it is missing 2020-12-28 00:41:41 +01:00
Gerhard Rieger
3ef518fde0 Unsetenv was not conditional in xio-openssl.c 2020-12-27 20:52:41 +01:00
Gerhard Rieger
d4cce300a4 Removed unused usleep() call from sycls.c 2020-12-27 20:50:39 +01:00
Gerhard Rieger
ecac86a280 Solved more testing issues 2020-12-09 20:54:42 +01:00
Gerhard Rieger
a850582908 Removed deny_severity,allow_severity defs from filan.c and procan.c to make gcc version 10 happy 2020-11-14 17:33:58 +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
4bb7936bec Converted CHANGES from ISO-8859-1 to UTF-8 2020-02-23 12:37:19 +01:00
Gerhard Rieger
82cf4ae7e8 version 1.7.3.4 2020-01-05 20:26:17 +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
cbeb06b19b Fixed regression: SSL_CTX_clear_mode() not available in older OpenSSL versions 2020-01-01 14:14:12 +01:00
Gerhard Rieger
72a137c287 Socat failed to compile when no poll() system call was found 2020-01-01 14:02:06 +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
420835bf2a Header of xiotermios_speed() declared parameter unsigned int instead of speed_t 2019-09-08 18:19:57 +02:00
Gerhard Rieger
e1bc39a53f version 1.7.3.3 2019-04-05 22:24:19 +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
ba27f6c3ba Renamed configure.in to configure.ac 2019-03-12 22:00:46 +01:00
Gerhard Rieger
bc3723e970 OpenSSL: clear SSL_MODE_AUTO_RETRY 2019-03-12 21:09:18 +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
8b31a82b92 RES_AAONLY, RES_PRIMARY are deprecated 2019-03-03 15:57:08 +01:00
Gerhard Rieger
ad2484f49f Fixed a couple of typos 2019-03-03 15:08:41 +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
a2f8e99371 Simplified handling of missing termios defines 2019-03-03 10:15:55 +01:00
Gerhard Rieger
ea42d022c6 Substituted ISPEED_OFFSET mechanism for cfsetispeed() calls 2019-03-03 10:12:44 +01:00
Gerhard Rieger
1301cacad3 Termios options TAB0,TAB1,TAB2,TAB3, and XTABS did not have an effect 2019-03-03 10:11:10 +01:00
Gerhard Rieger
ebbe704423 Apply termios settings in a single system call (for ispeed,ospeed) 2019-03-03 10:10:56 +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
a3c688210f Removed dependency on gethostbyname() 2019-02-24 23:17:17 +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
aaf90d6efb The autoconf mechanism for determining SHIFT_OFFSET did not work when cross compiling 2019-02-24 22:37:08 +01:00
Gerhard Rieger
4ca048da49 configure option --enable-msglevel did not work with numbers 2019-02-24 22:35:45 +01:00
Gerhard Rieger
e7488fb0b5 filan dependencies on vsnprintf_r.o snprinterr.o; FILAN_OBJS 2019-02-24 22:34:18 +01:00