diff options
author | James McKenzie <git@madingley.org> | 2019-10-13 01:41:06 +0100 |
---|---|---|
committer | James McKenzie <git@madingley.org> | 2019-10-13 01:42:38 +0100 |
commit | 79d7554a7c66130b2c1392970da415393ba41c5c (patch) | |
tree | 8b56debddd17850c7f9f5dc56e9c1f463d446e24 /INF/ILO2.pm | |
parent | 71de12861c6e6f82c3a26a0305400c2ad8e9727b (diff) | |
download | inf-79d7554a7c66130b2c1392970da415393ba41c5c.tar.gz inf-79d7554a7c66130b2c1392970da415393ba41c5c.tar.bz2 inf-79d7554a7c66130b2c1392970da415393ba41c5c.zip |
fix up for fc30
Diffstat (limited to 'INF/ILO2.pm')
-rw-r--r-- | INF/ILO2.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/INF/ILO2.pm b/INF/ILO2.pm index 6a5265e..0e2375b 100644 --- a/INF/ILO2.pm +++ b/INF/ILO2.pm @@ -1,6 +1,7 @@ #!/usr/bin/env perl -IO::Socket::SSL::set_ctx_defaults( SSL_verify_mode => SSL_VERIFY_NONE ); +IO::Socket::SSL::set_ctx_defaults( + SSL_verify_mode => Net::SSLeay::VERIFY_NONE() ); package INF::ILO2; @@ -584,7 +585,7 @@ sub new ($;$) { $self->{userid} = undef; $self->{ua}->ssl_opts( - SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE, + SSL_verify_mode => Net::SSLeay::VERIFY_NONE(), verify_hostname => 0, ); @@ -604,9 +605,10 @@ sub new ($;$) { port => $local_port, daemon_class => 'HTTP::Daemon::SSL', daemon_args => [ - LocalAddr => '127.0.0.1', - SSL_key_file => '/usr/local/share/inf/ilo/server.key', - SSL_cert_file => '/usr/local/share/inf/ilo/server.crt', + LocalAddr => '127.0.0.1', + SSL_key_file => '/usr/local/share/inf/ilo/server.key', + SSL_cert_file => '/usr/local/share/inf/ilo/server.crt', + SSL_verify_mode => Net::SSLeay::VERIFY_NONE(), ], ); $self->{server}->mount( |