Check if session was resumed
(&self)
| 333 | |
| 334 | /// Check if session was resumed |
| 335 | pub fn is_session_resumed(&self) -> bool { |
| 336 | use rustls::HandshakeKind; |
| 337 | match self { |
| 338 | TlsConnection::Client(conn) => { |
| 339 | matches!(conn.handshake_kind(), Some(HandshakeKind::Resumed)) |
| 340 | } |
| 341 | TlsConnection::Server(conn) => { |
| 342 | matches!(conn.handshake_kind(), Some(HandshakeKind::Resumed)) |
| 343 | } |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | /// Send close_notify alert |
| 348 | pub fn send_close_notify(&mut self) { |