mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 04:02:15 +02:00
a219ce0303
Signed-off-by: Arne Schwabe <arne@openvpn.net> |
||
---|---|---|
.. | ||
.gitignore | ||
ca.crt | ||
client.crt | ||
client.key | ||
CMakeLists.txt | ||
dh.pem | ||
go | ||
proto.cpp | ||
protowin.h | ||
README.txt | ||
server.crt | ||
server.key | ||
tls-auth.key | ||
tls-crypt-v2-client.key | ||
tls-crypt-v2-server.key |
The proto test utility can be tweaked with build time options changing the behaviour. These are set via CMake variables. * TEST_PROTO_NTHREADS - Running test threads (default 1) The number of test client/server pairs running in parallel. $ cd $O3/core/build && cmake -DTEST_PROTO_NTHREADS=4 .. $ cmake --build . -- test/ssl/proto * TEST_PROTO_RENEG - Rengotiation (default 900) To simulate less data-channel activity and more SSL renegotiations $ cd $O3/core/build && cmake -DTEST_PROTO_RENEG=90 .. $ cmake --build . -- test/ssl/proto * TEST_PROTO_ITER - Iterations (default 1000000) For verbose output, lower the number of xmit/recv iterations by defining TEST_PROTO_ITER to be 10000 or less, e.g. $ cd $O3/core/build && cmake -DTEST_PROTO_ITER=1000 .. $ cmake --build . -- test/ssl/proto * TEST_PROTO_SITER - High-level Session Iterations (default 1) $ cd $O3/core/build && cmake -DTEST_PROTO_SITER=2 .. $ cmake --build . -- test/ssl/proto * TEST_PROTO_VERBOSE - Verbose log output (off) This will dump details of the protocol traffic as the test runs. This is a boolean flag. $ cd $O3/core/build && cmake -DTEST_PROTO_VERBOSE=ON .. $ cmake --build . -- test/ssl/proto * Mbed TLS specific - run the crypto library self-test $ cd $O3/core/build/test/ssl && ./proto test Caveats: When using MbedTLS as both client and server, make sure to build MbedTLS on Mac OS X with OSX_SERVER=1. Typical output: $ cd $O3/core/test/ssl $ time ./proto *** app bytes=73301015 net_bytes=146383320 data_bytes=36327640 prog=0000218807/0000218806 D=12600/600/12600/800 N=1982/1982 SH=17800/17800 HE=3/6 real 0m11.003s user 0m10.981s sys 0m0.004s