mirror of https://github.com/ctz/rustls
Inline ConnectionCommon::send_some_plaintext()
This commit is contained in:
parent
4d910f2f81
commit
a6617232bf
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue