You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, if you call rustls_server_config_builder_build on a config builder where no cert resolver has been set, it will return NULL. This is a little inconsistent with other functions, where returning NULL is reserved for panics or null inputs.
Instead we should do one of two things:
Make cert resolver a mandatory argument to rustls_server_config_builder_new and rustls_server_config_builder_new_custom, or
Make rustls_server_config_builder_build() take an output parameter to write the built server config, and return a rustls_result, which may return a new error value RUSTLS_RESULT_NO_CERT_RESOLVER.