rust: bssl-tls: Do not provide the TlsSession example We are not ready for this so far, because the callback to receive a working session has not landed. Signed-off-by: Xiangfei Ding <xfding@google.com> Change-Id: Ib55ea91356bde42ed59063a31fa8e14c6a6a6964 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/98787 Presubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Adam Langley <agl@google.com>
diff --git a/rust/bssl-tls/src/sessions.rs b/rust/bssl-tls/src/sessions.rs index 84442b5..aee4f83 100644 --- a/rust/bssl-tls/src/sessions.rs +++ b/rust/bssl-tls/src/sessions.rs
@@ -32,24 +32,6 @@ /// A TLS session. /// /// See [RFC 8446 Section 2.2](https://datatracker.ietf.org/doc/html/rfc8446#section-2.2). -/// -/// # Example -/// -/// ```rust,no_run -/// # use bssl_tls::{context::TlsContext, sessions::TlsSession}; -/// # use bssl_tls::context::{Client, TlsMode}; -/// # use bssl_tls::connection::lifecycle::EstablishedTlsConnection; -/// // Assuming `conn` is an `EstablishedTlsConnection` -/// # let conn: EstablishedTlsConnection<'_, Client, TlsMode> = todo!(); -/// # let ctx: TlsContext = todo!(); -/// if let Some(session) = conn.get_session() { -/// // Serialize the session to store it -/// let session_bytes = session.to_bytes().unwrap(); -/// -/// // Deserialize the session to resume it later -/// let recovered_session = TlsSession::from_bytes(&session_bytes, &ctx).unwrap(); -/// } -/// ``` pub struct TlsSession(pub(crate) NonNull<bssl_sys::SSL_SESSION>); // Safety: once constructed an `SSL_SESSION` is immutable and has no thread-local data.