Skip to content

Commit cfe046d

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebSocketClient.cpp

+2-2
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)