mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-16 08:42:06 +02:00
fix #38
This commit is contained in:
@ -397,7 +397,7 @@ String WebSockets::acceptKey(String clientKey) {
|
|||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
sha1(clientKey + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11", &sha1HashBin[0]);
|
sha1(clientKey + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11", &sha1HashBin[0]);
|
||||||
#else
|
#else
|
||||||
clientKey =+ "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
|
clientKey += "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
|
||||||
SHA1_CTX ctx;
|
SHA1_CTX ctx;
|
||||||
SHA1Init(&ctx);
|
SHA1Init(&ctx);
|
||||||
SHA1Update(&ctx, (const unsigned char*)clientKey.c_str(), clientKey.length());
|
SHA1Update(&ctx, (const unsigned char*)clientKey.c_str(), clientKey.length());
|
||||||
|
Reference in New Issue
Block a user