added more channel binding infrastructure
This commit is contained in:
parent
6579ce6563
commit
a88d9aa566
2 changed files with 13 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue