SignedEncryptedFrame(ProtocolV2 &protocol, char *payload, uint32_t length)
: PayloadFrame<T, Args...>() {
- protocol.session_stream_handlers.rx->reset_rx_handler();
-
ceph::bufferlist bl;
bl.push_back(buffer::create_static(length, payload));
if (protocol.auth_meta->is_mode_secure()) {
ceph_assert(protocol.session_stream_handlers.rx);
- protocol.session_stream_handlers.rx->reset_rx_handler();
text = protocol.session_stream_handlers.rx->authenticated_decrypt_update(
std::move(text), 8);
return _fault();
}
+ if (auth_meta->is_mode_secure()) {
+ ceph_assert(session_stream_handlers.rx);
+ session_stream_handlers.rx->reset_rx_handler();
+ }
+
bufferlist bl;
bl.push_back(buffer::create_static(sizeof(uint32_t) * 2, buffer));
try {