Skip to content

Commit 7aec8fe

Browse files
authored
Update HTTPConnection.cpp
1 parent aace047 commit 7aec8fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HTTPConnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ void handleWebsocketHandshake(HTTPRequest * req, HTTPResponse * res) {
664664
std::string websocketKeyResponseHash(std::string const &key) {
665665
std::string newKey = key + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
666666
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);
668668

669669
// Get output size required for base64 representation
670670
size_t b64BufferSize = 0;

0 commit comments

Comments
 (0)