Skip to content

Commit 33ca02c

Browse files
committed
mbedtls_sha1_ret changed to mbedtls_sha1
1 parent e66658a commit 33ca02c

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
@@ -665,7 +665,7 @@ void handleWebsocketHandshake(HTTPRequest * req, HTTPResponse * res) {
665665
std::string websocketKeyResponseHash(std::string const &key) {
666666
std::string newKey = key + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
667667
uint8_t shaData[HTTPS_SHA1_LENGTH];
668-
mbedtls_sha1_ret((uint8_t*)newKey.data(), newKey.length(), shaData);
668+
mbedtls_sha1((uint8_t*)newKey.data(), newKey.length(), shaData);
669669

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

0 commit comments

Comments
 (0)