Module rustls_ffi::server

source ·

Structs§

Functions§

  • Select a rustls_certified_key from the list that matches the cryptographic parameters of a TLS client hello. Note that this does not do any SNI matching. The input certificates should already have been filtered to ones matching the SNI from the client hello.
  • Copy the server name from the server name indication (SNI) extension to buf which can hold up to count bytes, and the length of that server name in out_n. The string is stored in UTF-8 with no terminating NUL byte. Returns RUSTLS_RESULT_INSUFFICIENT_SIZE if the SNI hostname is longer than count. Returns Ok with *out_n == 0 if there is no SNI hostname available on this connection because it hasn’t been processed yet, or because the client did not send SNI. https://docs.rs/rustls/latest/rustls/server/struct.ServerConnection.html#method.server_name

Type Aliases§

  • Prototype of a callback that can be installed by the application at the rustls_server_config. This callback will be invoked by a rustls_connection once the TLS client hello message has been received. userdata will be set based on rustls_connection_set_userdata. hello gives the value of the available client announcements, as interpreted by rustls. See the definition of rustls_client_hello for details.
  • Any context information the callback will receive when invoked.