Commit 5d9eaf53 authored by Joseph Glanville's avatar Joseph Glanville Committed by Joseph Glanville
Browse files

Add accessor for peer_certificate

parent d723481f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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