aboutsummaryrefslogtreecommitdiff
path: root/src/IO/tls.h
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2023-12-21 21:23:50 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2023-12-30 01:37:14 +0100
commit6ef3b839729f7e8ccd0a8c88374567b497088512 (patch)
tree02ea0686040af67431bb70d605ed068cd73a1a4c /src/IO/tls.h
parentb43e4309e694061c6a14b6e2629b870e9302c287 (diff)
Move mbedTLS implementation to tls_mbedtls.c
Diffstat (limited to 'src/IO/tls.h')
-rw-r--r--src/IO/tls.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/IO/tls.h b/src/IO/tls.h
deleted file mode 100644
index a3bf9ba5..00000000
--- a/src/IO/tls.h
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef __TLS_H__
-#define __TLS_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "../url.h"
-
-#define TLS_CONNECT_NEVER -1
-#define TLS_CONNECT_NOT_YET 0
-#define TLS_CONNECT_READY 1
-
-void a_Tls_init();
-
-
-#ifdef ENABLE_SSL
-int a_Tls_certificate_is_clean(const DilloUrl *url);
-int a_Tls_connect_ready(const DilloUrl *url);
-void a_Tls_reset_server_state(const DilloUrl *url);
-
-/* Use to initiate a TLS connection. */
-void a_Tls_connect(int fd, const DilloUrl *url);
-
-void *a_Tls_connection(int fd);
-
-void a_Tls_freeall();
-
-void a_Tls_close_by_fd(int fd);
-int a_Tls_read(void *conn, void *buf, size_t len);
-int a_Tls_write(void *conn, void *buf, size_t len);
-#else
-
-#define a_Tls_certificate_is_clean(host) 0
-#define a_Tls_connect_ready(url) TLS_CONNECT_NEVER
-#define a_Tls_reset_server_state(url) ;
-#define a_Tls_handshake(fd, url) ;
-#define a_Tls_connect(fd, url) ;
-#define a_Tls_connection(fd) NULL
-#define a_Tls_freeall() ;
-#define a_Tls_close_by_fd(fd) ;
-#define a_Tls_read(conn, buf, len) 0
-#define a_Tls_write(conn, buf, len) 0
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __TLS_H__ */
-