TlsPeer
Base interface for a (D)TLS endpoint.
Indicates whether a DTLS connection should ignore corrupt records (bad_record_mac) instead of
failing the connection.
bool AllowLegacyResumption()
Specify the time, in milliseconds, after which a handshake packet is resent.
void Cancel()
int[] GetCipherSuites()
Specify the timeout, in milliseconds, to use for the complete handshake process.
Return a TlsHeartbeat instance that will control the generation of heartbeats
locally (if permitted by the remote peer), or null to not generate heartbeats. Heartbeats are described in
RFC 6520.
short GetHeartbeatPolicy()
Return the heartbeat mode applicable to the remote peer. Heartbeats are described in RFC 6520.
short[] GetPskKeyExchangeModes()
This method will be called when an alert is raised by the protocol.
This method will be called when an alert is received from the remote peer.
void NotifyHandshakeBeginning()
Notifies the peer that a new handshake is about to begin.
void NotifyHandshakeComplete()
Notifies the peer that the handshake has been successfully completed.
RFC 5746 3.4/3.6. In case this is false, peers may want to terminate the handshake instead of
continuing; see Section 4.1/4.3 for discussion.
bool RequiresCloseNotify()
bool RequiresExtendedMasterSecret()
bool ShouldUseExtendedPadding()
See RFC 5246 6.2.3.2. Controls whether block cipher encryption may randomly add extra padding
beyond the minimum.
bool ShouldUseGmtUnixTime()
draft-mathewson-no-gmtunixtime-00 2. "If existing users of a TLS implementation may rely on
gmt_unix_time containing the current time, we recommend that implementors MAY provide the ability to set
gmt_unix_time as an option only, off by default.".