Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 050821b

Browse filesBrowse files
authored
Merge pull request arduino-libraries#26 from sandeepmistry/websocket-sec-key-length
Increase WebSocket sec key length to 24 characters
2 parents 4e476a6 + cfe046d commit 050821b
Copy full SHA for 050821b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/WebSocketClient.cpp

Copy file name to clipboardExpand all lines: src/WebSocketClient.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ int WebSocketClient::begin(const char* aPath)
3535

3636
if (status == 0)
3737
{
38-
uint8_t randomKey[13];
39-
char base64RandomKey[21];
38+
uint8_t randomKey[16];
39+
char base64RandomKey[25];
4040

4141
// create a random key for the connection upgrade
4242
for (int i = 0; i < (int)sizeof(randomKey); i++)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.