Tls module

can_accept

procedureextensionexperimentalSource

Whether tls_accept works with this config: it was set up, and has a certificate and key.

Example↗
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
Example↗
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.

See also