Module rustls_ffi::cipher[][src]

Structs

An X.509 certificate, as used in rustls. Corresponds to Certificate in the Rust API. https://docs.rs/rustls/0.20.0/rustls/struct.Certificate.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/0.20.0/rustls/sign/struct.CertifiedKey.html

A verifier of client certificates that requires all certificates to be trusted based on a given rustls_root_cert_store. Usable in building server configurations. Connections without such a client certificate will not be accepted.

Alternative to rustls_client_cert_verifier that allows connections with or without a client certificate. If the client offers a certificate, it will be verified (and rejected if it is not valid). If the client does not offer a certificate, the connection will succeed.

A root cert store that is done being constructed and is now read-only. Under the hood, this object corresponds to an Arc. https://docs.rs/rustls/0.20.0/rustls/struct.RootCertStore.html

A cipher suite supported by rustls.

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 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.