Skip to content

fix: in Boost 1.90.0, sha1 digest_type is a byte array - #7

Open
dvnrrs wants to merge 1 commit into
mainfrom
norris/fix-with-boost-1-90-0
Open

fix: in Boost 1.90.0, sha1 digest_type is a byte array#7
dvnrrs wants to merge 1 commit into
mainfrom
norris/fix-with-boost-1-90-0

Conversation

@dvnrrs

@dvnrrs dvnrrs commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Newer versions of Boost change the digest_type of Boost.UUID's SHA1 calculation to a byte array. Previously, it was an array of 32-bit words. With the older code, it was necessary to byte-swap the 32-bit words before base64 encoding; with the new code, the digest bytes can be used directly.

The symptom of this problem is generating an incorrect Sec-WebSocket-Accept response header, and strict clients (such as web browsers, Postman, etc.) reporting an invalid key during the WebSocket upgrade handshake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants