Skip to content

Commit

Permalink
cbindgen update for comment tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Nov 20, 2023
1 parent 0700a45 commit 2d6c77c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/rustls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit 2d6c77c

Please sign in to comment.