Convert rustls protocol version to string representation Returns the TLS version string - TLSv1.2, TLSv1.3, or "Unknown"
(version: &rustls::SupportedProtocolVersion)
| 2321 | /// Returns the TLS version string |
| 2322 | /// - TLSv1.2, TLSv1.3, or "Unknown" |
| 2323 | pub(super) fn get_protocol_version_str(version: &rustls::SupportedProtocolVersion) -> &'static str { |
| 2324 | match version.version { |
| 2325 | rustls::ProtocolVersion::TLSv1_2 => "TLSv1.2", |
| 2326 | rustls::ProtocolVersion::TLSv1_3 => "TLSv1.3", |
| 2327 | _ => "Unknown", |
| 2328 | } |
| 2329 | } |
| 2330 | |
| 2331 | /// Cipher suite information |
| 2332 | /// |
no outgoing calls
no test coverage detected