openssl/util/perl
Andy Polyakov 6228b1dae2 TLSProxy/Proxy.pm: switch to dynamic ports and overhaul.
By asking for port 0, you get a free port dynamically assigned by OS.
TLSProxy::Proxy now asks for 0 and asks s_server to do the same. The
s_server's port is reported in "ACCEPT" line, which TLSProxy::Proxy
parses and uses.

Because the server port is now a random affair in TLSProxy::Proxy,
it's no longer possible to change it with the method 'server_port',
and it has become an accessor only. For the sake of orthogonality, so
has the method 'server_addr'.

Remove all fork calls on Windows, as fork is not to be trusted there.
This naturally minimized amount of fork calls on POSIX systems, to 1.

Sink s_server's output to 'perl -ne print' which ensures that output
is written strictly in lines. This keeps TAP parser happy.

Improve synchronization in -naccept +n cases by establishing next
connection to s_server *after* s_client finishes instead of before it
starts.

Improve error handling and clean up some methods.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5843)
2018-04-04 20:24:26 +02:00
..
OpenSSL Refuse to run test_cipherlist unless shared library matches build 2018-03-31 16:40:07 +02:00
TLSProxy TLSProxy/Proxy.pm: switch to dynamic ports and overhaul. 2018-04-04 20:24:26 +02:00
checkhandshake.pm Update copyright year 2018-02-13 13:59:25 +00:00
with_fallback.pm Consolidate the locations where we have our internal perl modules 2017-08-15 11:30:47 +02:00