FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Increase WebSocket sec key length to 24 characters · SensorWatch/ArduinoHttpClient@cfe046d · GitHub

Repository navigation

Commit cfe046d

Browse files
committed
Increase WebSocket sec key length to 24 characters
1 parent 4e476a6 commit cfe046d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/WebSocketClient.cpp‎

Lines 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)

Back | FazBrowse Home | New Git URL