0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00
openvpn3/test/ssl
James Yonan 8b71fa9800 Converted RAND_API from static to dynamic polymorphism
(using RandomAPI as base class).
2014-10-15 12:53:18 -06:00
..
ca.crt Updated proto unit test with fresh certs/keys. 2013-01-30 21:08:55 +00:00
client.crt Updated proto unit test with fresh certs/keys. 2013-01-30 21:08:55 +00:00
client.key Updated proto unit test with fresh certs/keys. 2013-01-30 21:08:55 +00:00
dh.pem Updated proto unit test with fresh certs/keys. 2013-01-30 21:08:55 +00:00
proto.cpp Converted RAND_API from static to dynamic polymorphism 2014-10-15 12:53:18 -06:00
protowin.h Ported minicrypto lib to OS X for PolarSSL optimization. 2014-03-04 17:42:00 -07:00
README.txt Converted RAND_API from static to dynamic polymorphism 2014-10-15 12:53:18 -06:00
server.crt Updated proto unit test with fresh certs/keys. 2013-01-30 21:08:55 +00:00
server.key Updated proto unit test with fresh certs/keys. 2013-01-30 21:08:55 +00:00
tls-auth.key Updated proto unit test with fresh certs/keys. 2013-01-30 21:08:55 +00:00

Building proto.cpp sample:

On Mac

  Build with PolarSSL client and server (no ASM crypto algs):

    PSSL=1 build proto

  Build with PolarSSL client and server using 4 concurrent threads (no ASM crypto algs):

    -DN_THREADS=4" PSSL=1 build proto

  Build with PolarSSL client and OpenSSL server (no ASM crypto algs):

    PSSL=1 OSSL=1 OPENSSL_SYS=1 build proto

  Build with OpenSSL client and server (no ASM crypto algs):

    OSSL=1 OPENSSL_SYS=1 build proto

  Build with PolarSSL client and server + minicrypto lib:

    PSSL=1 MINI=1 build proto

On Linux:

  Build with PolarSSL client and server (no ASM crypto algs):

    PSSL=1 NOSSL=1 build proto

  Build with OpenSSL client and server:

    OSSL=1 build proto

  Build with PolarSSL client and OpenSSL server:

    PSSL=1 OSSL=1 build proto

Variations:

  To simulate less data-channel activity and more SSL renegotiations
  (RENEG default is 900):

  GCC_EXTRA="-DRENEG=90" build proto

  For verbose output, lower the number of xmit/recv iterations by defining
  ITER to be 10000 or less, e.g.

    GCC_EXTRA="-DITER=1000" build proto

  Crypto self-test (PolarSSL must be built with DEBUG_BUILD=1 or SELF_TEST=1):

    ./proto test

Caveats:

 When using PolarSSL as both client and server, make sure to build
 PolarSSL on Mac OS X with OSX_SERVER=1.

Typical output:

  $ 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