Prototype of a callback that can be installed by the application at the
rustls_server_config or rustls_client_config. This callback will be
invoked by a TLS session when a TLS session has been created and an id
for later use is handed to the client/has been received from the server.
userdata will be supplied based on rustls_{client,server}_session_set_userdata.
The callback should return RUSTLS_RESULT_OK to indicate that a value was
successfully stored, or RUSTLS_RESULT_IO on failure.
NOTE: the passed in key and val are only available during the
callback invocation.
NOTE: callbacks used in several sessions via a common config
must be implemented thread-safe.
Prototype of a callback that can be installed by the application at the rustls_server_config or rustls_client_config. This callback will be invoked by a TLS session when a TLS session has been created and an id for later use is handed to the client/has been received from the server. userdata will be supplied based on rustls_{client,server}_session_set_userdata.
The callback should return RUSTLS_RESULT_OK to indicate that a value was successfully stored, or RUSTLS_RESULT_IO on failure.
NOTE: the passed in key and val are only available during the callback invocation. NOTE: callbacks used in several sessions via a common config must be implemented thread-safe.