Fix a bug that ignored the --ssl-protocol parameter
This commit is contained in:
parent
b6d6b5f19c
commit
e57dfc478b
@ -668,6 +668,8 @@ main(int argc, char **argv)
|
|||||||
param.ssl_ca_path = optarg;
|
param.ssl_ca_path = optarg;
|
||||||
else if (flag == ¶m.ssl_protocol)
|
else if (flag == ¶m.ssl_protocol)
|
||||||
{
|
{
|
||||||
|
param.use_ssl = 1;
|
||||||
|
|
||||||
if (strcasecmp (optarg, "auto") == 0)
|
if (strcasecmp (optarg, "auto") == 0)
|
||||||
param.ssl_protocol = 0;
|
param.ssl_protocol = 0;
|
||||||
#ifndef OPENSSL_NO_SSL2
|
#ifndef OPENSSL_NO_SSL2
|
||||||
|
Loading…
Reference in New Issue
Block a user