| 377 | } |
| 378 | |
| 379 | Result HttpWebSocketHandshake::createClientKey(Span<const uint8_t> nonce, Span<char> storage, StringSpan& key) |
| 380 | { |
| 381 | SC_TRY_MSG(nonce.sizeInBytes() == NonceLength, "HttpWebSocketHandshake nonce must be 16 bytes"); |
| 382 | return scHttpWebSocketBase64Encode(nonce, storage, key); |
| 383 | } |
| 384 | |
| 385 | Result HttpWebSocketHandshake::validateClientKey(StringSpan key) |
| 386 | { |
nothing calls this directly
no test coverage detected