Richard Levitte ab69ac00f3 Refactoring BIO: Adapt s_client and s_server
s_socket.c gets brutally cleaned out and now consists of only two
functions, one for client and the other for server.  They both handle
AF_INET, AF_INET6 and additionally AF_UNIX where supported.  The rest
is just easy adaptation.

Both s_client and s_server get the new flags -4 and -6 to force the
use of IPv4 or IPv6 only.

Also, the default host "localhost" in s_client is removed.  It's not
certain that this host is set up for both IPv4 and IPv6.  For example,
Debian has "ip6-localhost" as the default hostname for [::1].  The
better way is to default |host| to NULL and rely on BIO_lookup() to
return a BIO_ADDRINFO with the appropriate loopback address for IPv4
or IPv6 as indicated by the |family| parameter.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2016-02-03 20:36:49 +01:00
..
2016-02-03 18:08:16 +01:00
2015-12-16 16:14:49 -05:00
2015-10-30 17:21:42 -04:00
2016-01-25 21:19:59 +01:00
2015-12-14 23:06:14 +00:00
2016-01-12 01:00:31 -05:00
2015-12-16 16:14:49 -05:00
2015-10-23 19:52:08 +02:00
2016-01-29 16:56:07 -05:00
2015-11-20 13:40:53 +00:00
2015-12-16 16:14:49 -05:00
2016-01-12 01:00:31 -05:00
2015-11-21 14:37:24 +01:00
2016-01-11 17:50:42 +00:00
2016-01-11 17:50:42 +00:00
2016-01-12 01:00:31 -05:00
2015-12-16 16:14:49 -05:00
2016-01-20 03:24:59 +00:00
2015-10-05 09:25:06 +02:00
2016-01-11 10:03:27 +00:00
2016-01-31 09:42:53 -05:00
2016-01-22 15:06:21 -05:00
2016-01-26 16:40:43 -05:00
2016-01-26 16:40:43 -05:00
2015-10-30 17:21:42 -04:00
2016-01-30 16:23:44 +01:00