2 #ifndef EL__NETWORK_SSL_SSL_H
3 #define EL__NETWORK_SSL_SSL_H
7 #include "main/module.h"
11 extern struct module ssl_module
;
13 /* Initializes the SSL connection data. Returns S_OK on success and S_SSL_ERROR
15 int init_ssl_connection(struct socket
*socket
);
17 /* Releases the SSL connection data */
18 void done_ssl_connection(struct socket
*socket
);
20 unsigned char *get_ssl_connection_cipher(struct socket
*socket
);
23 /* Internal type used in ssl module. */
27 #elif defined(CONFIG_GNUTLS)
28 #define ssl_t gnutls_session_t
31 #endif /* CONFIG_SSL */