mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
HttpUtils.pm: add SSL_alpn_protocols support (Forum #111959)
git-svn-id: https://svn.fhem.de/fhem/trunk@27376 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a7177fba00
commit
a2a81587b9
@ -609,6 +609,17 @@ HttpUtils_Connect2($)
|
|||||||
$par{SSL_verify_mode} = 0
|
$par{SSL_verify_mode} = 0
|
||||||
if(!$hash->{sslargs} || !defined($hash->{sslargs}{SSL_verify_mode}));
|
if(!$hash->{sslargs} || !defined($hash->{sslargs}{SSL_verify_mode}));
|
||||||
|
|
||||||
|
for my $p ("alpn", "npn") { #111959
|
||||||
|
my $n = "SSL_${p}_protocols";
|
||||||
|
next if(!$par{$n});
|
||||||
|
if(IO::Socket::SSL->can("can_${p}")) {
|
||||||
|
my @a = split(",",$par{$n});
|
||||||
|
$par{$n} = \@a;
|
||||||
|
} else {
|
||||||
|
Log 1, "ERROR: the SSL library has no support for $n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return HttpUtils_Connect2NonblockingSSL($hash,\%par)
|
return HttpUtils_Connect2NonblockingSSL($hash,\%par)
|
||||||
if($hash->{callback});
|
if($hash->{callback});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user