Searched refs:WS_MAGIC (Results 1 – 3 of 3) sorted by relevance
30 #define WS_MAGIC "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" macro41 char key_accept[HTTP_SERVER_WS_MAX_SEC_KEY_LEN + sizeof(WS_MAGIC)]; in handle_http1_to_websocket_upgrade()52 olen = MIN(sizeof(key_accept) - 1 - key_len, sizeof(WS_MAGIC) - 1); in handle_http1_to_websocket_upgrade()53 strncpy(key_accept + key_len, WS_MAGIC, olen); in handle_http1_to_websocket_upgrade()
24 #define WS_MAGIC "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" macro
245 char key_accept[MAX_SEC_ACCEPT_LEN + sizeof(WS_MAGIC)]; in websocket_connect()342 olen = MIN(sizeof(key_accept) - 1 - key_len, sizeof(WS_MAGIC) - 1); in websocket_connect()343 strncpy(key_accept + key_len, WS_MAGIC, olen); in websocket_connect()