From 2d6c77cc3b0a2e88a820aea1bb6dd2e9bd23c945 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Mon, 20 Nov 2023 10:15:40 -0500 Subject: [PATCH] cbindgen update for comment tweaks --- src/rustls.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/rustls.h b/src/rustls.h index 37756135..aa870fbc 100644 --- a/src/rustls.h +++ b/src/rustls.h @@ -222,11 +222,12 @@ typedef struct rustls_iovec rustls_iovec; typedef struct rustls_root_cert_store rustls_root_cert_store; /** - * A `rustls_root_cert_store` being constructed. A builder can be modified by - * adding trust anchor root certificates with `rustls_root_cert_store_builder_add_pem`. - * Once you're done adding root certificates, call `rustls_root_cert_store_builder_build` - * to turn it into a `rustls_root_cert_store`. This object is not safe - * for concurrent mutation. + * A `rustls_root_cert_store` being constructed. + * + * A builder can be modified by adding trust anchor root certificates with + * `rustls_root_cert_store_builder_add_pem`. Once you're done adding root certificates, + * call `rustls_root_cert_store_builder_build` to turn it into a `rustls_root_cert_store`. + * This object is not safe for concurrent mutation. */ typedef struct rustls_root_cert_store_builder rustls_root_cert_store_builder; @@ -936,9 +937,10 @@ rustls_result rustls_certified_key_clone_with_ocsp(const struct rustls_certified void rustls_certified_key_free(const struct rustls_certified_key *key); /** - * Create a `rustls_root_cert_store_builder`. Caller owns the memory and may - * free it with `rustls_root_cert_store_free`, regardless of whether - * `rustls_root_cert_store_builder_build` was called. + * Create a `rustls_root_cert_store_builder`. + * + * Caller owns the memory and may free it with `rustls_root_cert_store_free`, regardless of + * whether `rustls_root_cert_store_builder_build` was called. * * If you wish to abandon the builder without calling `rustls_root_cert_store_builder_build`, * it must be freed with `rustls_root_cert_store_builder_free`.