Vortex TLS: TLS profile support and related functions


Defines

#define VORTEX_TLS_PROFILE_URI   "http://iana.org/beep/TLS"
 TLS Profile unique URI identifier.

Enumerations

enum  VortexDigestMethod { VORTEX_SHA1 = 1, VORTEX_MD5 = 2 }
 Digest method provided. More...

Functions

axl_bool vortex_tls_accept_negotiation (VortexTlsAcceptQuery accept_handler, VortexTlsCertificateFileLocator certificate_handler, VortexTlsPrivateKeyFileLocator private_key_handler)
 Allows to configure if current Vortex Library instance will accept TLS incoming connections.
char * vortex_tls_get_digest (VortexDigestMethod method, const char *string)
 Allows to create an MD5 digest from the provided string.
char * vortex_tls_get_digest_sized (VortexDigestMethod method, const char *content, int content_size)
 Allows to create an MD5 digest from the provided string, configuring the size of the string to be calculated.
char * vortex_tls_get_peer_ssl_digest (VortexConnection *connection, VortexDigestMethod method)
 Allows to return the certificate digest for the remote peer, once an TLS session is activated (this is also called the certificate fingerprint).
axlPointer vortex_tls_get_ssl_object (VortexConnection *connection)
 Returns the SSL object associated to the given connection.
axl_bool vortex_tls_is_enabled (void)
 Initialize and checks if the Vortex Library being used have support for TLS profile.
void vortex_tls_set_ctx_creation (VortexConnection *connection, VortexTlsCtxCreation ctx_creation, axlPointer user_data)
 Allows to configure the SSL context creation function to be called, once the TLS process is activated, and it is required an SSL_CTX object.
void vortex_tls_set_default_ctx_creation (VortexTlsCtxCreation ctx_creation, axlPointer user_data)
 Allows to configure the default SSL context creation function to be called, once the TLS process is activated, and it is required an SSL_CTX object.
void vortex_tls_set_default_post_check (VortexTlsPostCheck post_check, axlPointer user_data)
 Allows to configure a function that will be executed at the end of the TLS process, before returning the connection to be usable.
void vortex_tls_set_post_check (VortexConnection *connection, VortexTlsPostCheck post_check, axlPointer user_data)
 Allows to configure a function that will be executed at the end of the TLS process, before returning the connection to be usable.
void vortex_tls_start_negotiation (VortexConnection *connection, const char *serverName, VortexTlsActivation process_status, axlPointer user_data)
 Starts the TLS underlying transport security negotiation for the given connection.
VortexConnectionvortex_tls_start_negotiation_sync (VortexConnection *connection, const char *serverName, VortexStatus *status, char **status_message)
 Allows to start a TLS profile negotiation in a synchronous way (blocking the caller).