mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 12:46:03 +00:00
01_FHEMWEB.pm: Change Digest::SHA1 to Digest::SHA (Forum #62001)
git-svn-id: https://svn.fhem.de/fhem/trunk@12974 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
159bb41f69
commit
35a13ba2ea
@ -456,7 +456,7 @@ FW_Read($$)
|
|||||||
if($method eq 'GET' && $FW_httpheader{Connection} =~ /Upgrade/i &&
|
if($method eq 'GET' && $FW_httpheader{Connection} =~ /Upgrade/i &&
|
||||||
$FW_use_sha) {
|
$FW_use_sha) {
|
||||||
|
|
||||||
my $shastr = Digest::SHA1::sha1_base64($FW_httpheader{'Sec-WebSocket-Key'}.
|
my $shastr = Digest::SHA::sha1_base64($FW_httpheader{'Sec-WebSocket-Key'}.
|
||||||
"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");
|
"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");
|
||||||
|
|
||||||
TcpServer_WriteBlocking($FW_chash,
|
TcpServer_WriteBlocking($FW_chash,
|
||||||
@ -2427,7 +2427,7 @@ FW_Attr(@)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($attrName eq "longpoll" && $type eq "set" && $param[0] eq "websocket") {
|
if($attrName eq "longpoll" && $type eq "set" && $param[0] eq "websocket") {
|
||||||
eval { require Digest::SHA1; };
|
eval { require Digest::SHA; };
|
||||||
if($@) {
|
if($@) {
|
||||||
Log3 $FW_wname, 1, $@;
|
Log3 $FW_wname, 1, $@;
|
||||||
return "$devName: Can't load Digest::SHA, no websocket";
|
return "$devName: Can't load Digest::SHA, no websocket";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user