Whether tls_accept works with this config: it was set up, and has a certificate and key.
- config: the config to check.
client: Tls_Config;
tls_config_init(*client);
assert(!can_accept(*client)); // no certificate and key
tls_config_free(*client);This one is only checked to compile, not run.
can_accept :: (config: *Tls_Config) -> bool
Whether tls_accept works with this config: it was set up, and has a certificate and key.
Parameters
- config: *Tls_Config
- the config to check.
Returns
- bool
client: Tls_Config;
tls_config_init(*client);
assert(!can_accept(*client)); // no certificate and key
tls_config_free(*client);This one is only checked to compile, not run.