Skip to content

Commit 2f2c7c8

Browse files
committed
allow deprecation for security framework
1 parent 4b55868 commit 2f2c7c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/imp/security_framework.rs

+1
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ impl<S: io::Read + io::Write> TlsStream<S> {
390390
Ok(self.stream.context().buffered_read_size()?)
391391
}
392392

393+
#[allow(deprecated)]
393394
pub fn peer_certificate(&self) -> Result<Option<Certificate>, Error> {
394395
let trust = match self.stream.context().peer_trust2()? {
395396
Some(trust) => trust,

0 commit comments

Comments
 (0)