0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00

Changes to core self test test/ssl/proto.cpp :

* Fixed compile issue due to need to replace cc.enable_debug()
  with cc.ssl_debug_level = 1.

* Added RENEG var to control number of "virtual seconds" between
  SSL renegotiations.

* Doc changes in README.txt.
This commit is contained in:
James Yonan 2014-03-03 14:43:38 -07:00
parent 4491ce194f
commit bd02377947
2 changed files with 18 additions and 4 deletions

View File

@ -20,8 +20,17 @@ On Linux:
PSSL=1 build proto
Build with PolarSSL client and server:
GCC_EXTRA="-DUSE_POLARSSL_SERVER" PSSL=1 build proto
Variations:
To simulate more data-channel activity and less SSL renegotiations
(RENEG default is 90):
GCC_EXTRA="-DRENEG=900" build proto
For verbose output, lower the number of xmit/recv iterations by defining
ITER to be 10000 or less, e.g.

View File

@ -21,6 +21,11 @@
#define OPENVPN_LOG_SSL(x) // disable
// how many virtual seconds between SSL renegotiations
#ifndef RENEG
#define RENEG 90
#endif
// number of threads to use for test
#ifndef N_THREADS
#define N_THREADS 1
@ -667,7 +672,7 @@ int test(const int thread_num)
cc.load_private_key(client_key);
#endif
#ifdef VERBOSE
cc.enable_debug();
cc.ssl_debug_level = 1;
#endif
#if defined(USE_POLARSSL)
cc.rng = rng_cli;
@ -710,7 +715,7 @@ int test(const int thread_num)
#if defined(CLIENT_NO_RENEG)
cp->renegotiate = Time::Duration::infinite();
#else
cp->renegotiate = Time::Duration::seconds(90);
cp->renegotiate = Time::Duration::seconds(RENEG);
#endif
cp->expire = cp->renegotiate + cp->renegotiate;
cp->keepalive_ping = Time::Duration::seconds(5);
@ -734,7 +739,7 @@ int test(const int thread_num)
sc.rng = rng_serv;
#endif
#ifdef VERBOSE
sc.enable_debug();
sc.ssl_debug_level = 1;
#endif
// server ProtoContext config
@ -771,7 +776,7 @@ int test(const int thread_num)
#if defined(SERVER_NO_RENEG)
sp->renegotiate = Time::Duration::infinite();
#else
sp->renegotiate = Time::Duration::seconds(90);
sp->renegotiate = Time::Duration::seconds(RENEG);
#endif
sp->expire = sp->renegotiate + sp->renegotiate;
sp->keepalive_ping = Time::Duration::seconds(5);