Revert "crypto: expose negotiated_cipher_suite in the hadshake data"

Temporarily revert a5d9bd1154 because
it introduced semver-incompatible change. Will submit as a PR again
after merging.
This commit is contained in:
Dirkjan Ochtman
2024-11-11 11:47:18 +01:00
parent 2a8b9044cc
commit ca1f2ef9fe
-7
View File
@@ -64,11 +64,6 @@ impl crypto::Session for TlsSession {
Connection::Client(_) => None,
Connection::Server(ref session) => session.server_name().map(|x| x.into()),
},
negotiated_cipher_suite: self
.inner
.negotiated_cipher_suite()
.expect("cipher is negotiated")
.suite(),
}))
}
@@ -261,8 +256,6 @@ pub struct HandshakeData {
///
/// Always `None` for outgoing connections
pub server_name: Option<String>,
/// The ciphersuite negotiated with the peer
pub negotiated_cipher_suite: CipherSuite,
}
/// A QUIC-compatible TLS client configuration