added more channel binding infrastructure

This commit is contained in:
lumi 2017-02-25 06:58:42 +01:00
commit a88d9aa566
2 changed files with 13 additions and 2 deletions

View file

@ -35,6 +35,11 @@ pub trait Transport {
/// Resets the stream.
fn reset_stream(&mut self);
/// Gets channel binding data.
fn channel_bind(&self) -> Option<Vec<u8>> {
None
}
}
/// A transport which uses STARTTLS.
@ -73,6 +78,11 @@ impl Transport for SslTransport {
.. Default::default()
});
}
fn channel_bind(&self) -> Option<Vec<u8>> {
// TODO: channel binding
None
}
}
impl SslTransport {