mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
SSL_verify_mode must be a number.
(cherry picked from commit 6a2833b9a49bd37106cc59bdddbe66b6d57ab4cf)
This commit is contained in:
parent
e6746835e9
commit
12be2a0a10
@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user