| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d4ebb98 commit acb9fe8
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -664,7 +664,7 @@ void handleWebsocketHandshake(HTTPRequest * req, HTTPResponse * res) { | |||
| 664 | 664 | std::string websocketKeyResponseHash(std::string const &key) { | |
| 665 | 665 | std::string newKey = key + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; | |
| 666 | 666 | uint8_t shaData[HTTPS_SHA1_LENGTH]; | |
| 667 | - esp_sha(SHA1, (uint8_t*)newKey.data(), newKey.length(), shaData); | ||
| 667 | + mbedtls_sha1_ret((uint8_t*)newKey.data(), newKey.length(), shaData); | ||
| 668 | 668 | ||
| 669 | 669 | // Get output size required for base64 representation | |
| 670 | 670 | size_t b64BufferSize = 0; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | 7 | #include <string> | |
| 8 | 8 | #include <mbedtls/base64.h> | |
| 9 | - #include <hwcrypto/sha.h> | ||
| 9 | + #include <mbedtls/sha1.h> | ||
| 10 | 10 | #include <functional> | |
| 11 | 11 | ||
| 12 | 12 | // Required for sockets | |
| Back | FazBrowse Home | New Git URL |
0 commit comments