Add accessor for peer_certificate
This commit is contained in:
parent
d723481f77
commit
5d9eaf53da
|
|
@ -822,6 +822,11 @@ impl<S: Read+Write> SslStream<S> {
|
|||
&self.stream
|
||||
}
|
||||
|
||||
/// Return the certificate of the peer
|
||||
pub fn get_peer_certificate(&self) -> Option<X509> {
|
||||
self.ssl.get_peer_certificate()
|
||||
}
|
||||
|
||||
/// Returns a mutable reference to the underlying stream.
|
||||
///
|
||||
/// ## Warning
|
||||
|
|
|
|||
Loading…
Reference in New Issue