01_FHEMWEB.pm: Change Digest::SHA1 to Digest::SHA (Forum #62001)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12974 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-01-06 11:27:53 +00:00
parent b7e9892c81
commit 6f7326e660

View File

@ -456,7 +456,7 @@ FW_Read($$)
if($method eq 'GET' && $FW_httpheader{Connection} =~ /Upgrade/i &&
$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");
TcpServer_WriteBlocking($FW_chash,
@ -2427,7 +2427,7 @@ FW_Attr(@)
}
if($attrName eq "longpoll" && $type eq "set" && $param[0] eq "websocket") {
eval { require Digest::SHA1; };
eval { require Digest::SHA; };
if($@) {
Log3 $FW_wname, 1, $@;
return "$devName: Can't load Digest::SHA, no websocket";