Register a callback to be invoked when a connection created from this config
sees a TLS ClientHello message. If userdata has been set with
rustls_connection_set_userdata, it will be passed to the callback.
Otherwise the userdata param passed to the callback will be NULL.
Any existing ResolvesServerCert implementation currently installed in the
rustls_server_config will be replaced. This also means registering twice
will overwrite the first registration. It is not permitted to pass a NULL
value for callback.
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.
Installing a client_hello callback will replace any configured certified keys
and vice versa. Same holds true for the set_certified_keys variant.
Register a callback to be invoked when a connection created from this config sees a TLS ClientHello message. If userdata has been set with rustls_connection_set_userdata, it will be passed to the callback. Otherwise the userdata param passed to the callback will be NULL.
Any existing ResolvesServerCert implementation currently installed in the rustls_server_config will be replaced. This also means registering twice will overwrite the first registration. It is not permitted to pass a NULL value for callback.
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. Installing a client_hello callback will replace any configured certified keys and vice versa. Same holds true for the set_certified_keys variant.