Inline ConnectionCommon::send_some_plaintext()

This commit is contained in:
Dirkjan Ochtman 2023-03-11 22:37:22 +01:00
parent 4d910f2f81
commit a6617232bf
2 changed files with 1 additions and 7 deletions

View File

@ -187,6 +187,7 @@ impl CommonState {
/// If internal buffers are too small, this function will not accept
/// all the data.
pub(crate) fn send_some_plaintext(&mut self, data: &[u8]) -> usize {
self.perhaps_write_key_update();
self.send_plain(data, Limit::Yes)
}

View File

@ -635,13 +635,6 @@ impl<Data> ConnectionCommon<Data> {
}
}
pub(crate) fn send_some_plaintext(&mut self, buf: &[u8]) -> usize {
self.common_state
.perhaps_write_key_update();
self.common_state
.send_some_plaintext(buf)
}
/// Read TLS content from `rd` into the internal buffer.
///
/// Due to the internal buffering, `rd` can supply TLS messages in arbitrary-sized chunks (like