rustls_client_hello_callback

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.

NOTE: - the passed in hello and all its values are only available during the callback invocations. - the passed callback function must be safe to call multiple times concurrently with the same userdata, unless there is only a single config and connection where it is installed.

EXPERIMENTAL: this feature of rustls-ffi is likely to change in the future, as the rustls library is re-evaluating their current approach to client hello handling.

extern (C)
alias rustls_client_hello_callback = rustls_certified_key* function

Meta