version 1.7, 2015/04/15 16:33:49 |
version 1.8, 2015/07/17 16:10:49 |
|
|
int maxtime; |
int maxtime; |
int nbio; |
int nbio; |
int perform; |
int perform; |
int ssl3; |
|
int verify; |
int verify; |
int verify_depth; |
int verify_depth; |
char *www_path; |
char *www_path; |
|
|
.value = 2, |
.value = 2, |
}, |
}, |
{ |
{ |
.name = "ssl3", |
|
.desc = "Only use SSLv3", |
|
.type = OPTION_FLAG, |
|
.opt.flag = &s_time_config.ssl3, |
|
}, |
|
{ |
|
.name = "time", |
.name = "time", |
.argname = "seconds", |
.argname = "seconds", |
.desc = "Duration to perform timing tests for (default 30)", |
.desc = "Duration to perform timing tests for (default 30)", |
|
|
"usage: s_time " |
"usage: s_time " |
"[-bugs] [-CAfile file] [-CApath directory] [-cert file]\n" |
"[-bugs] [-CAfile file] [-CApath directory] [-cert file]\n" |
" [-cipher cipherlist] [-connect host:port] [-key keyfile]\n" |
" [-cipher cipherlist] [-connect host:port] [-key keyfile]\n" |
" [-nbio] [-new] [-reuse] [-ssl3] [-time seconds]\n" |
" [-nbio] [-new] [-reuse] [-time seconds]\n" |
" [-verify depth] [-www page]\n\n"); |
" [-verify depth] [-www page]\n\n"); |
options_usage(s_time_options); |
options_usage(s_time_options); |
} |
} |
|
|
int ret = 1, i; |
int ret = 1, i; |
char buf[1024 * 8]; |
char buf[1024 * 8]; |
int ver; |
int ver; |
|
|
s_time_meth = SSLv23_client_method(); |
s_time_meth = SSLv23_client_method(); |
|
|
verify_depth = 0; |
verify_depth = 0; |
|
|
s_time_usage(); |
s_time_usage(); |
goto end; |
goto end; |
} |
} |
|
|
if (s_time_config.ssl3) |
|
s_time_meth = SSLv3_client_method(); |
|
|
|
if (s_time_config.verify_depth >= 0) { |
if (s_time_config.verify_depth >= 0) { |
s_time_config.verify = SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE; |
s_time_config.verify = SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE; |