From 7ee38fbf64c690917f7cc2c6da814fb7e1930efd Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Mon, 16 Dec 2024 10:30:58 -0500 Subject: [PATCH] clarify rustls_client_config_builder_enable_ech arg lifetime --- src/client.rs | 3 ++- src/rustls.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 64b94525..6a38d0bb 100644 --- a/src/client.rs +++ b/src/client.rs @@ -385,7 +385,8 @@ impl rustls_client_config_builder { /// /// The provided `ech_config_list_bytes` and `rustls_hpke` must not be NULL or an /// error will be returned. The caller maintains ownership of the ECH config list TLS bytes - /// and `rustls_hpke` instance. + /// and `rustls_hpke` instance. This function does not retain any reference to + /// `ech_config_list_bytes`. /// /// A `RUSTLS_RESULT_BUILDER_INCOMPATIBLE_TLS_VERSIONS` error is returned if the builder's /// TLS versions have been customized via `rustls_client_config_builder_new_custom()` diff --git a/src/rustls.h b/src/rustls.h index fba30a1d..1432df51 100644 --- a/src/rustls.h +++ b/src/rustls.h @@ -1768,7 +1768,8 @@ rustls_result rustls_client_config_builder_set_key_log(struct rustls_client_conf * * The provided `ech_config_list_bytes` and `rustls_hpke` must not be NULL or an * error will be returned. The caller maintains ownership of the ECH config list TLS bytes - * and `rustls_hpke` instance. + * and `rustls_hpke` instance. This function does not retain any reference to + * `ech_config_list_bytes`. * * A `RUSTLS_RESULT_BUILDER_INCOMPATIBLE_TLS_VERSIONS` error is returned if the builder's * TLS versions have been customized via `rustls_client_config_builder_new_custom()`