void vortex_tls_set_ctx_creation ( VortexConnection connection,
VortexTlsCtxCreation  ctx_creation,
axlPointer  user_data 
)

Allows to configure the SSL context creation function.

See VortexTlsCtxCreation for more information.

If you want to configure a global handler to be called for all connections, you can use the default handler: vortex_tls_set_default_ctx_creation.

NOTE: Using this function for the server side, will disable the following handlers, (provided at the vortex_tls_accept_negotiation):

This is because providing a function to create the SSL context (SSL_CTX) assumes the application layer on top of Vortex Library takes control over the SSL configuration process. This ensures Vortex Library will not do any additional configuration once created the SSL context (SSL_CTX).

Parameters
connectionThe connection where TLS is going to be activated.
ctx_creationThe handler to be called once required a SSL_CTX object.
user_dataUser defined data, that is passed to the handler provided (ctx_creation).

References vortex_connection_set_data().