33#if ! defined(ENABLE_TLS)
34 MSG(
"TLS: Disabled at compilation time.\n");
35#elif defined(HAVE_OPENSSL)
37#elif defined(HAVE_MBEDTLS)
40# error "no TLS library found but ENABLE_TLS set"
50#if ! defined(ENABLE_TLS)
52#elif defined(HAVE_OPENSSL)
54#elif defined(HAVE_MBEDTLS)
57# error "no TLS library found but ENABLE_TLS set"
70#if ! defined(ENABLE_TLS)
72#elif defined(HAVE_OPENSSL)
74#elif defined(HAVE_MBEDTLS)
77# error "no TLS library found but ENABLE_TLS set"
87#if ! defined(ENABLE_TLS)
89#elif defined(HAVE_OPENSSL)
91#elif defined(HAVE_MBEDTLS)
94# error "no TLS library found but ENABLE_TLS set"
103#if ! defined(ENABLE_TLS)
105#elif defined(HAVE_OPENSSL)
107#elif defined(HAVE_MBEDTLS)
110# error "no TLS library found but ENABLE_TLS set"
117#if ! defined(ENABLE_TLS)
119#elif defined(HAVE_OPENSSL)
121#elif defined(HAVE_MBEDTLS)
124# error "no TLS library found but ENABLE_TLS set"
130#if ! defined(ENABLE_TLS)
132#elif defined(HAVE_OPENSSL)
134#elif defined(HAVE_MBEDTLS)
137# error "no TLS library found but ENABLE_TLS set"
143#if ! defined(ENABLE_TLS)
145#elif defined(HAVE_OPENSSL)
147#elif defined(HAVE_MBEDTLS)
150# error "no TLS library found but ENABLE_TLS set"
156#if ! defined(ENABLE_TLS)
158#elif defined(HAVE_OPENSSL)
160#elif defined(HAVE_MBEDTLS)
163# error "no TLS library found but ENABLE_TLS set"
169#if ! defined(ENABLE_TLS)
171#elif defined(HAVE_OPENSSL)
173#elif defined(HAVE_MBEDTLS)
176# error "no TLS library found but ENABLE_TLS set"
void a_Tls_reset_server_state(const DilloUrl *url)
void a_Tls_connect(int fd, const DilloUrl *url)
int a_Tls_read(void *conn, void *buf, size_t len)
int a_Tls_connect_ready(const DilloUrl *url)
The purpose here is to permit a single initial connection to a server.
void a_Tls_init(void)
Initialize TLS library.
int a_Tls_write(void *conn, void *buf, size_t len)
void a_Tls_close_by_fd(int fd)
int a_Tls_certificate_is_clean(const DilloUrl *url)
Did everything seem proper with the certificate – no warnings to click through?.
void a_Tls_freeall(void)
Clean up the TLS library.
void * a_Tls_connection(int fd)
Return TLS connection information for a given file descriptor, or NULL if no TLS connection was found...
#define TLS_CONNECT_NEVER
int a_Tls_mbedtls_certificate_is_clean(const DilloUrl *url)
void * a_Tls_mbedtls_connection(int fd)
void a_Tls_mbedtls_init(void)
void a_Tls_mbedtls_reset_server_state(const DilloUrl *url)
void a_Tls_mbedtls_freeall(void)
void a_Tls_mbedtls_close_by_fd(int fd)
int a_Tls_mbedtls_write(void *conn, void *buf, size_t len)
int a_Tls_mbedtls_read(void *conn, void *buf, size_t len)
int a_Tls_mbedtls_connect_ready(const DilloUrl *url)
void a_Tls_mbedtls_connect(int fd, const DilloUrl *url)
void a_Tls_openssl_reset_server_state(const DilloUrl *url)
int a_Tls_openssl_read(void *conn, void *buf, size_t len)
void * a_Tls_openssl_connection(int fd)
int a_Tls_openssl_connect_ready(const DilloUrl *url)
void a_Tls_openssl_init(void)
void a_Tls_openssl_close_by_fd(int fd)
void a_Tls_openssl_connect(int fd, const DilloUrl *url)
int a_Tls_openssl_certificate_is_clean(const DilloUrl *url)
void a_Tls_openssl_freeall(void)
int a_Tls_openssl_write(void *conn, void *buf, size_t len)