Esc

tls_config_generation

procedureextensionexperimentalsince 0.36.1Source
  • macOS: tls_config_generation works on macOS
  • Linux: tls_config_generation works on Linux
  • Windows: tls_config_generation works on Windows
  • Wasm: tls_config_generation is not available on Wasm

Which setup the config is in: every tls_config_init that succeeds gives a new number, and 0 means not set up. A pool that keys connections by a config's address can add this to tell the config from a later one at the same address.

Signature

tls_config_generation :: (config: *Tls_Config) -> u64
config
the config to ask about.
Example
config: Tls_Config;
assert(tls_config_generation(*config) == 0);
tls_config_init(*config);
first := tls_config_generation(*config);
tls_config_free(*config);
tls_config_init(*config);
assert(first != 0 && tls_config_generation(*config) != first);
tls_config_free(*config);

See also