method TlsStream.peerSubject
RFC 2253 subject of the peer's leaf certificate ("" when it sent none, e.g. a client without mutual TLS).
Example:
use std.net { TlsStream }
fn who(s: &TlsStream) -> str {
s.peerSubject()
}pub(api) fn peerSubject() -> strSince. 1.0.0-beta
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/net/tls.oxl:386