Commit graph

36 commits

Author SHA1 Message Date
fhajny
0c40d9ce27 Update socat to 1.7.2.2 (thanks Sebastian Wiedenroth).
Changes:
- Fix for CVE-2013-3571.
2013-10-21 09:54:11 +00:00
jperkin
a4c37a0f0e Need net/if.h for netinet/if_ether.h on SunOS. 2013-09-13 09:41:32 +00:00
ryoon
f8e628f818 * .include "../../devel/readline/buildlink3.mk" with USE_GNU_READLINE=yes
are replaced with .include "../../devel/readline/buildlink3.mk", and
  USE_GNU_READLINE are removed,

* .include "../../devel/readline/buildlink3.mk" without USE_GNU_READLINE
  are replaced with .include "../../mk/readline.buildlink3.mk".
2013-07-15 02:02:17 +00:00
riastradh
55f6f799b2 Kludgily fix cross-build of net/socat on NetBSD.
The right fix is to thwap socat over the head for worrying about the
values of these constants at compile-time, but that's inexpedient...

ok agc
2013-05-10 00:46:53 +00:00
khorben
8a1bae05b9 Updated socat to version 1.7.2.1
Security update:
"A heap based buffer overflow vulnerability has been found with data that happens to be output on the READLINE address." (CVE-2012-0219)

Tested according to the official advisory at http://www.dest-unreach.org/socat/contrib/socat-secadv3.html

XXX pull-up to 2013Q1
2013-04-11 09:38:09 +00:00
jperkin
becd113253 PKGREVISION bumps for the security/openssl 1.0.1d update. 2013-02-06 23:20:50 +00:00
asau
e059e7e469 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-23 17:18:07 +00:00
wiz
f98e8b0585 Add inet6 to default suggested options. It's 2012. 2012-06-12 15:45:54 +00:00
joerg
01b24af79a Use standard headers. 2011-12-06 19:51:47 +00:00
zafer
91b924d6d0 Update socat to 1.7.1.3
Changelog:

security:
	fixed a stack overflow vulnerability that occurred when command
	line arguments (whole addresses, host names, file names) were longer
	than 512 bytes.
	Note that this could only be exploited when an attacker was able to
	inject data into socat's command line.
	Full credits to Felix Grobert, Google Security Team, for finding and
	reporting this issue
2010-08-12 17:54:14 +00:00
zafer
1c41c0c3cb Update socat to 1.7.1.2
Changelog:

corrections:
	user-late and group-late, when applied to a pty, affected the system
	device /dev/ptmx instead of the pty (thanks to Matthew Cloke for
	pointing me to this bug)

	socats openssl addresses failed with "nonblocking operation did not
	complete" when the peer performed a renegotiation. Thanks to Benjamin
	Delpy for reporting this bug.

	info message during socks connect showed bad port number on little
	endian systems due to wrong byte order (thanks to Peter M. Galbavy for
	bug report and patch)

	Debian bug 531078: socat execs children with SIGCHLD ignored; corrected
	to default. Thanks to Martin Dorey for reporting this bug.

porting:
	building socat on systems that predefined the CFLAGS environment to
	contain -Wall failed (esp.RedHat). Thanks to Paul Wouters for reporting
	this problem and to Simon Matter for providing the patch

	support for Solaris 8 and Sun Studio support (thanks to Sebastian
	Kayser for providing the patches)

	on some 64bit systems a compiler warning "cast from pointer to integer
	of different size" was issued on some option definitions

	added struct sockaddr_ll to union sockaddr_union to avoid "strict
	aliasing" warnings (problem reported by Paul Wouters)

docu:
	minor corrections in docu
2010-04-19 19:52:13 +00:00
wiz
579796a3e5 Recursive PKGREVISION bump for jpeg update to 8. 2010-01-17 12:02:03 +00:00
zafer
dd8d619c6c Update socat to 1.7.1.1. Add license.
ChangeLog:

V 1.7.1.1:

corrections:
corrected the "fixed possible SIGSEGV" fix because SIGSEGV still might
occur under those conditions. Thanks to Toni Mattila for first
reporting this problem.

ftruncate64 cut its argument to 32 bits on systems with 32 bit long type

socat crashed on systems without setenv() (esp. SunOS up to Solaris 9);
thanks to Todd Stansell for reporting this bug

with unidirectional EXEC and SYSTEM a close() operation was performed
on a random number which could result in hanging e.a.

fixed a compile problem caused by size_t/socklen_t mismatch on 64bit
systems

docu mentioned option so-bindtodev but correct name is so-bindtodevice.
Thanks to Jim Zimmerman for reporting.

docu changes:
added environment variables example to doc/socat-multicast.html

V 1.7.1.0:

new features:
address options shut-none, shut-down, and shut-close allow to control
socat's half close behaviour

with address option shut-null socat sends an empty packet to the peer
to indicate EOF

option null-eof changes the behaviour of sockets that receive an empty
packet to see EOF instead of ignoring it

introduced option names substuser-early and su-e, currently equivalent
to option substuser (thanks to Mike Perry for providing the patch)

corrections:
fixed some typos and improved some comments

V 1.7.0.1:

corrections:
fixed possible SIGSEGV in listening addresses when a new connection was
reset by peer before the socket addresses could be retrieved. Thanks to
Mike Perry for sending a patch.

fixed a bug, introduced with version 1.7.0.0, that let client
connections with option connect-timeout fail when the connections
succeeded. Thanks to Bruno De Fraine for reporting this bug.

option end-close "did not apply" to addresses PTY, SOCKET-CONNECT,
and most UNIX-* and ABSTRACT-*

half close of EXEC and SYSTEM addresses did not work for pipes and
sometimes socketpair

help displayed for some option a wrong type

under some circumstances shutdown was called multiple times for the
same fd
2009-07-19 12:08:12 +00:00
adrianp
2ae6078ec7 Give up MAINTAINER 2009-07-17 18:00:13 +00:00
wiz
272d51cc21 Recursive ABI depends update and PKGREVISION bump for readline-6.0 shlib
major change.

Reported by Robert Elz in PR 41345.
2009-05-20 00:58:05 +00:00
apb
74d2b6d935 Support systems where time_t is equivalent to "long long" or
"unsigned long long".
2009-03-11 08:40:32 +00:00
adrianp
2d9faed3ff Update to 1.7.0.0
2008/10/15: socat version 1.7.0.0 brings support for SCTP stream, raw
interface, and generic sockets. New option escape allows to interrupt raw
terminal connections. Listening and receiving sockets can set a couple of
environment variables. Added base control of System V STREAMS. Lots of
corrections were performed. socat compiles on Mac OS X again.

Patch from Leonardo Taccari
2008-10-25 18:21:18 +00:00
joerg
3b0d97b0de Add DESTDIR support. 2008-06-20 01:09:05 +00:00
rillig
afd4678e11 Only for gcc, and even in that case there are lots of reasonable
compiler warnings.
2008-01-27 14:09:09 +00:00
rillig
df583faa81 PKGREVISION++ for the previous change. 2008-01-27 12:35:35 +00:00
rillig
7d4b87ed73 Fixed a segmentation fault when calling "socat -hhh". 2008-01-27 12:35:16 +00:00
tnn
ad6ceadd25 Per the process outlined in revbump(1), perform a recursive revbump
on packages that are affected by the switch from the openssl 0.9.7
branch to the 0.9.8 branch. ok jlam@
2008-01-18 05:06:18 +00:00
adrianp
6fef0c870d Add options.mk for explicitly disabling inet6
Patch from Yakovetsky Vladimir in PR# 37088
2007-10-09 20:21:29 +00:00
schmonz
801dd9ecd1 Add the usual macosx-bind9-bind8compat hack to fix build on OS X. 2007-04-27 22:31:53 +00:00
adrianp
03db4e56cf Update to 1.6.0.0
Some new features/corrections include:
* new addresses IP-DATAGRAM and UDP-DATAGRAM allow versatile broadcast
  and multicast modes
* range option supports form address:mask with IPv4
* changed behaviour of SSL-LISTEN to require and verify client
  certificate per default
* filan (and socat -D) could hang when a socket was involved

See: http://www.dest-unreach.org/socat/doc/CHANGES for all the details
2007-04-09 09:47:48 +00:00
adrianp
1b7365020e Update to 1.5.0.0
new features:
new datagram modes for udp, rawip, unix domain sockets
socat option -T specifies inactivity timeout
rewrote lexical analysis to allow nested socat calls
addresses tcp, udp, tcp-l, udp-l, and rawip now support IPv4 and IPv6
socat options -4, -6 and environment variables SOCAT_DEFAULT_LISTEN_IP,
SOCAT_PREFERRED_RESOLVE_IP for control of protocol selection
addresses ssl, ssl-l, socks, proxy now support IPv4 and IPv6
option protocol-family (pf), esp. for openssl-listen
range option supports IPv6 - syntax: range=[::1/128]
option ipv6-v6only (ipv6only)
new tcp-wrappers options allow-table, deny-table, tcpwrap-etc
FIPS version of OpenSSL can be integrated - initial patch provided by
David Acker. See README.FIPS
support for resolver options res-debug, aaonly, usevc, primary, igntc,
recurse, defnames, stayopen, dnsrch
options for file attributes on advanced filesystems (ext2, ext3,
reiser): secrm, unrm, compr, ext2-sync, immutable, ext2-append, nodump,
ext2-noatime, journal-data etc.
option cool-write controls severeness of write failure (EPIPE, ECONNRESET)
option o-noatime
socat option -lh for hostname in log output
traffic dumping provides packet headers
configure.in became part of distribution
socats unpack directory now has full version, e.g. socat-1.5.0.0/
corrected docu of option verify

corrections:
fixed tcpwrappers integration - initial fix provided by Rudolf Cejka
exec with pipes,stderr produced error
setuid-early was ignored with many address types
some minor corrections
2007-02-17 17:44:57 +00:00
adrianp
ea189ea93f Update to 1.4.3.1
> ####################### V 1.4.3.1:
>
> corrections:
>         PROBLEM: UNIX socket listen accepted only one (or a few) connections.
>         FIX: do not remove listening UNIX socket in child process
>
>         PROBLEM: SIGSEGV when TCP part of SSL connect failed
>         FIX: check ssl pointer before calling SSH_shutdown
>
>         In debug mode, show connect client port even when connect fails
>
> ####################### V 1.4.3.0:
>
> new features:
>         socat options -L, -W for application level locking
>
>         options "lockfile", "waitlock" for address level locking
>         (Stefan Luethje)
>
>         option "readbytes" limits read length (Adam Osuchowski)
>
>         option "retry" for unix-connect, unix-listen, tcp6-listen (Dale Dude)
>         socat options -L, -W for application level locking
>
>         options "lockfile", "waitlock" for address level locking
>         (Stefan Luethje)
>
>         option "readbytes" limits read length (Adam Osuchowski)
>
>         option "retry" for unix-connect, unix-listen, tcp6-listen (Dale Dude)
>
>         pty symlink, unix listen socket, and named pipe are per default removed
>         after use; option unlink-close overrides this new behaviour and also
>         controls removal of other socat generated files (Stefan Luethje)
>
> corrections:
>         option "retry" did not work with tcp-listen
>
>         EPIPE condition could result in a 100% CPU loop
>
> further changes:
>         support systems without SHUT_RD etc.
>         handle more size_t types
>         try to find makedepend options with gcc 3 (richard/OpenMacNews)
2006-02-05 00:33:34 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
adrianp
ca828e8c06 - Update socat from 1.4.1.0 -> 1.4.2.0
new features:
option "connect-timeout" limits wait time for connect operations
(requested by Giulio Orsero)
option "dhparam" for explicit Diffie-Hellman parameter file

corrections:
support for OpenSSL DSA certificates (Miika Komu)
create install directories before copying files (Miika Komu)
when exiting on signal, return status 128+signum instead of 1
on EPIPE and ECONNRESET, only issue a warning (Santiago Garcia
Mantinan)
-lu could cause a core dump on long messages

further changes:
modifications to simplify using socats features in application
2005-03-26 11:40:29 +00:00
agc
b12d62efb5 Add RMD160 digests. 2005-02-24 12:13:41 +00:00
adrianp
8446545e5e Update to 1.4.1.0
new features:
option "wait-slave" blocks open of pty master side until a client
connects, "pty-intervall" controls polling
option -h as synonym to -? for help (contributed by Christian Lademann)
filan prints formatted time stamps and rdev (disable with -r)
redirect filan's output, so stdout is not affected (contributed by Luigi Iotti)
filan option -L to follow symbolic links
filan shows termios control characters

corrections:
proxy address no longer performs unsolicited retries
filan -f no longer needs read permission to analyze a file (but still
needs access permission to directory, of course)

porting:
Option dsusp
FreeBSD options noopt, nopush, md5sig
OpenBSD options sack-disable, signature-enable
HP-UX, Solaris options abort-threshold, conn-abort-threshold
HP-UX options b900, b3600, b7200
Tru64/OSF1 options keepinit, paws, sackena, tsoptena

further corrections:
address pty now uses ptmx as default if openpty is also available
2005-01-22 18:57:56 +00:00
adrianp
94344223e7 - Update to 1.4.0.3
- Security fix for: http://www.dest-unreach.org/socat/advisory/socat-adv-1.html
2004-10-25 17:13:51 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
adrianp
608c757adf Update socat to 1.4.0.2
- Change to my NetBSD email address

####################### V 1.4.0.2:

corrections:
	exec'd write-only addresses get a chance to flush before being killed
	error handler: print notice on error-exit
	filan printed wrong file type information

####################### V 1.4.0.1:

corrections:
	socks4a constructed invalid header. Problem found, reported, and fixed
	by Thomas Themel, by Peter Palfrader, and by rik
	with nofork, don't forget to apply some process related options
	(chroot, setsid, setpgid, ...)

####################### V 1.4.0.0:

new features:
	simple openssl server (ssl-l), experimental openssl trust
	new options "cafile", "capath", "key", "cert", "egd", and "pseudo" for
	openssl
	new options "retry", "forever", and "intervall"
	option "fork" for address TCP improves `gender changer´
	options "sigint", "sigquit", and "sighup" control passing of signals to
	sub process (thanks to David Shea who contributed to this issue)
	readline takes respect to the prompt issued by the peer address
	options "prompt" and "noprompt" allow to override readline's new
	default behaviour
	readline supports invisible password with option "noecho"
	socat option -lp allows to set hostname in log output
	socat option -lu turns on microsecond resolution in log output

corrections:
	before reading available data, check if writing on other channel is
	possible
	tcp6, udp6: support hostname specification (not only IP address), and
	map IP4 names to IP6 addresses
	openssl client checks server certificate per default
	support unidirectional communication with exec/system subprocess
	try to restore original terminal settings when terminating
	test.sh uses tmp dir /tmp/$USER/$$ instead of /tmp/$$
	socks4 failed on platforms where long does not have 32 bits
	(thanks to Peter Palfrader and Thomas Seyrat)
	hstrerror substitute wrote wrong messages (HP-UX, Solaris)
	proxy error message was truncated when answer contained multiple spaces

porting:
	compiles with AIX xlc, HP-UX cc, Tru64 cc (but might not link)
2004-09-30 12:42:45 +00:00
wiz
a661ce60c0 PKGREVISION bump after openssl-security-fix-update to 0.9.6m.
Buildlink files: RECOMMENDED version changed to current version.
2004-03-26 02:27:34 +00:00
minskim
7f29341f48 Import socat-1.3.2.2 from pkgsrc-wip. Provided by Adrian Portelli,
and slightly modified by me.

socat is a relay for bidirectional data transfer between two
independent data channels.  Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these.  These modes include generation of
"listening" sockets, pipes and pseudo terminals.
2004-02-14 22:43:38 +00:00