axl_bool vortex_tls_init ( VortexCtx ctx)

Initialize TLS library.

All client applications using TLS profile must call to this function in order to ensure TLS profile engine can be used.

Parameters
ctxThe context where the operation will be performed.
Returns
axl_true if the TLS profile was initialized. Otherwise axl_false is returned. If the function returns axl_false, TLS is not available and any call to operate with the TLS api will fail.

References CONNECTION_STAGE_POST_CREATED, vortex_connection_set_connection_actions(), vortex_ctx_get_data(), vortex_ctx_install_cleanup(), and vortex_ctx_set_data_full().

Referenced by vortex_tls_accept_negotiation().