mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
use strict masking for incoming messages references #264
This commit is contained in:
@@ -711,11 +711,19 @@ protected:
|
||||
{
|
||||
// unmask if masked
|
||||
if (frame::get_masked(m_basic_header)) {
|
||||
m_current_msg->prepared_key = frame::word_mask_circ(
|
||||
buf,
|
||||
len,
|
||||
m_current_msg->prepared_key
|
||||
);
|
||||
#ifdef WEBSOCKETPP_STRICT_MASKING
|
||||
m_current_msg->prepared_key = frame::byte_mask_circ(
|
||||
buf,
|
||||
len,
|
||||
m_current_msg->prepared_key
|
||||
);
|
||||
#else
|
||||
m_current_msg->prepared_key = frame::word_mask_circ(
|
||||
buf,
|
||||
len,
|
||||
m_current_msg->prepared_key
|
||||
);
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string& out = m_current_msg->msg_ptr->get_raw_payload();
|
||||
|
||||
Reference in New Issue
Block a user