Module rustls_ffi::cipher

source ·

Structs§

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 the rustls_str is the lifetime of the program, it does not need to be freed.