33#if ! defined(ENABLE_TLS)
35#elif defined(HAVE_OPENSSL)
37#elif defined(HAVE_MBEDTLS)
40# error "no TLS library found but ENABLE_TLS set"
49#if ! defined(ENABLE_TLS)
50 MSG(
"TLS: Disabled at compilation time.\n");
51#elif defined(HAVE_OPENSSL)
53#elif defined(HAVE_MBEDTLS)
56# error "no TLS library found but ENABLE_TLS set"
66#if ! defined(ENABLE_TLS)
68#elif defined(HAVE_OPENSSL)
70#elif defined(HAVE_MBEDTLS)
73# error "no TLS library found but ENABLE_TLS set"
86#if ! defined(ENABLE_TLS)
88#elif defined(HAVE_OPENSSL)
90#elif defined(HAVE_MBEDTLS)
93# 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"
119#if ! defined(ENABLE_TLS)
121#elif defined(HAVE_OPENSSL)
123#elif defined(HAVE_MBEDTLS)
126# error "no TLS library found but ENABLE_TLS set"
133#if ! defined(ENABLE_TLS)
135#elif defined(HAVE_OPENSSL)
137#elif defined(HAVE_MBEDTLS)
140# error "no TLS library found but ENABLE_TLS set"
146#if ! defined(ENABLE_TLS)
148#elif defined(HAVE_OPENSSL)
150#elif defined(HAVE_MBEDTLS)
153# error "no TLS library found but ENABLE_TLS set"
159#if ! defined(ENABLE_TLS)
161#elif defined(HAVE_OPENSSL)
163#elif defined(HAVE_MBEDTLS)
166# error "no TLS library found but ENABLE_TLS set"
172#if ! defined(ENABLE_TLS)
174#elif defined(HAVE_OPENSSL)
176#elif defined(HAVE_MBEDTLS)
179# error "no TLS library found but ENABLE_TLS set"
185#if ! defined(ENABLE_TLS)
187#elif defined(HAVE_OPENSSL)
189#elif defined(HAVE_MBEDTLS)
192# 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.
const char * a_Tls_version(char *buf, int n)
Get the version of the TLS library.
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
const char * a_Tls_mbedtls_version(char *buf, int n)
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)
const char * a_Tls_openssl_version(char *buf, int n)
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)