Module rustls_ffi::cipher
source · Structs§
- An X.509 certificate, as used in rustls. Corresponds to
CertificateDer
in the Rust pki-types API. https://docs.rs/rustls-pki-types/latest/rustls_pki_types/struct.CertificateDer.html - The complete chain of certificates to send during a TLS handshake, plus a private key that matches the end-entity (leaf) certificate. Corresponds to
CertifiedKey
in the Rust API. https://docs.rs/rustls/latest/rustls/sign/struct.CertifiedKey.html - A built client certificate verifier that can be provided to a
rustls_server_config_builder
withrustls_server_config_builder_set_client_verifier
. - A root certificate store. https://docs.rs/rustls/latest/rustls/struct.RootCertStore.html
- A
rustls_root_cert_store
being constructed. - A built server certificate verifier that can be provided to a
rustls_client_config_builder
withrustls_client_config_builder_set_server_verifier
. - A cipher suite supported by rustls.
- A client certificate verifier being constructed. A builder can be modified by, e.g.
rustls_web_pki_client_cert_verifier_builder_add_crl
. Once you’re done configuring settings, callrustls_web_pki_client_cert_verifier_builder_build
to turn it into arustls_client_cert_verifier
. This object is not safe for concurrent mutation. - A server certificate verifier being constructed. A builder can be modified by, e.g.
rustls_web_pki_server_cert_verifier_builder_add_crl
. Once you’re done configuring settings, callrustls_web_pki_server_cert_verifier_builder_build
to turn it into arustls_server_cert_verifier
. This object is not safe for concurrent mutation.
Statics§
- Rustls’ list of supported cipher suites. This is an array of pointers, and its length is given by
RUSTLS_ALL_CIPHER_SUITES_LEN
. The pointers will always be valid. The contents and order of this array may change between releases. - The length of the array
RUSTLS_ALL_CIPHER_SUITES
. - Rustls’ list of default cipher suites. This is an array of pointers, and its length is given by
RUSTLS_DEFAULT_CIPHER_SUITES_LEN
. The pointers will always be valid. The contents and order of this array may change between releases. - The length of the array
RUSTLS_DEFAULT_CIPHER_SUITES
.
Functions§
- Get a pointer to a member of rustls’ list of supported cipher suites. This will return non-NULL for i < rustls_all_ciphersuites_len(). The returned pointer is valid for the lifetime of the program and may be used directly when building a ClientConfig or ServerConfig.
- Return the length of rustls’ list of supported cipher suites.
- Get the DER data of the certificate itself. The data is owned by the certificate and has the same lifetime.
- Get a pointer to a member of rustls’ list of supported cipher suites. This will return non-NULL for i < rustls_default_ciphersuites_len(). The returned pointer is valid for the lifetime of the program and may be used directly when building a ClientConfig or ServerConfig.
- Return the length of rustls’ list of default cipher suites.
- Returns the name of the ciphersuite as a
rustls_str
. If the provided ciphersuite is invalid, the rustls_str will contain the empty string. The lifetime of therustls_str
is the lifetime of the program, it does not need to be freed.