Closed gre-42 closed 3 years ago
Hi. Is uint32 size fixed somewhere?
It is defined here: https://en.cppreference.com/w/c/types/integer
The question was about your suggested change. Is any websockets variable/structure field defined as 32 bit size? You didn't provide any motivation or explanation for the suggested change, that's why I need to clarify this.
The MHD_WebSocketStream
mask_key
is defined as 32 bit size.
struct MHD_WebSocketStream
{
...
/* The mask key of the current frame (control or data); this is 0 if no masking used */
char mask_key[4];
};
I see. Makes sense. Thank you.
Please set correct author name and email for commits next time.
This PR is merged as 441dbcfe52171c550b696eb45d1d87cb07653823.
The websocket mask is defined as
char mask_[4]
but casted tounsigned long
, which has 64 bits on modern Linux systems.