SSL_verify_mode must be a number.

(cherry picked from commit 6a2833b9a49bd37106cc59bdddbe66b6d57ab4cf)
This commit is contained in:
Ramon Novoa 2017-02-24 16:39:05 +01:00
parent e6746835e9
commit 12be2a0a10
4 changed files with 9 additions and 9 deletions

View File

@ -385,7 +385,7 @@ sub start_ssl {
SSL_passwd_cb => sub {return $t_ssl_pwd}, SSL_passwd_cb => sub {return $t_ssl_pwd},
SSL_use_cert =>'1', SSL_use_cert =>'1',
# No authentication # No authentication
SSL_verify_mode => '0x00', SSL_verify_mode => 0x00,
); );
} }
else { else {
@ -397,7 +397,7 @@ sub start_ssl {
SSL_passwd_cb => sub {return $t_ssl_pwd}, SSL_passwd_cb => sub {return $t_ssl_pwd},
SSL_use_cert =>'1', SSL_use_cert =>'1',
# Verify peer # Verify peer
SSL_verify_mode => '0x01', SSL_verify_mode => 0x01,
); );
} }

View File

@ -385,7 +385,7 @@ sub start_ssl {
SSL_passwd_cb => sub {return $t_ssl_pwd}, SSL_passwd_cb => sub {return $t_ssl_pwd},
SSL_use_cert =>'1', SSL_use_cert =>'1',
# No authentication # No authentication
SSL_verify_mode => '0x00', SSL_verify_mode => 0x00,
); );
} }
else { else {
@ -397,7 +397,7 @@ sub start_ssl {
SSL_passwd_cb => sub {return $t_ssl_pwd}, SSL_passwd_cb => sub {return $t_ssl_pwd},
SSL_use_cert =>'1', SSL_use_cert =>'1',
# Verify peer # Verify peer
SSL_verify_mode => '0x01', SSL_verify_mode => 0x01,
); );
} }

View File

@ -385,7 +385,7 @@ sub start_ssl {
SSL_passwd_cb => sub {return $t_ssl_pwd}, SSL_passwd_cb => sub {return $t_ssl_pwd},
SSL_use_cert =>'1', SSL_use_cert =>'1',
# No authentication # No authentication
SSL_verify_mode => '0x00', SSL_verify_mode => 0x00,
); );
} }
else { else {
@ -397,7 +397,7 @@ sub start_ssl {
SSL_passwd_cb => sub {return $t_ssl_pwd}, SSL_passwd_cb => sub {return $t_ssl_pwd},
SSL_use_cert =>'1', SSL_use_cert =>'1',
# Verify peer # Verify peer
SSL_verify_mode => '0x01', SSL_verify_mode => 0x01,
); );
} }

View File

@ -407,7 +407,7 @@ sub start_ssl {
if ($t_ssl_cert eq ''){ if ($t_ssl_cert eq ''){
IO::Socket::SSL->start_SSL ( IO::Socket::SSL->start_SSL (
$t_socket, $t_socket,
SSL_verify_mode => '0x00', SSL_verify_mode => 0x00,
); );
} }
elsif ($t_ssl_ca eq '') { elsif ($t_ssl_ca eq '') {
@ -418,7 +418,7 @@ sub start_ssl {
SSL_passwd_cb => sub {return $t_ssl_pwd}, SSL_passwd_cb => sub {return $t_ssl_pwd},
SSL_use_cert =>'1', SSL_use_cert =>'1',
# No authentication # No authentication
SSL_verify_mode => '0x00', SSL_verify_mode => 0x00,
); );
} }
else { else {
@ -430,7 +430,7 @@ sub start_ssl {
SSL_passwd_cb => sub {return $t_ssl_pwd}, SSL_passwd_cb => sub {return $t_ssl_pwd},
SSL_use_cert =>'1', SSL_use_cert =>'1',
# Verify peer # Verify peer
SSL_verify_mode => '0x01', SSL_verify_mode => 0x01,
); );
} }