aboutsummaryrefslogtreecommitdiff
path: root/src/IO/tls.c
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-03-09 17:35:19 +0100
committerrodarima <rodarima@gmail.com>2024-03-09 18:43:51 +0100
commit4c56214b8c2e130d3709bdca2513aef20b7b0fab (patch)
treeb8cd0c6dafb5850ba116221f6f39a62e84983aa5 /src/IO/tls.c
parentbde09c45adf0daf252fafbaf87683d3ed7eaab07 (diff)
Use Doxygen comments for C files
Diffstat (limited to 'src/IO/tls.c')
-rw-r--r--src/IO/tls.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/IO/tls.c b/src/IO/tls.c
index 2a27c1a6..05ae2514 100644
--- a/src/IO/tls.c
+++ b/src/IO/tls.c
@@ -25,6 +25,9 @@
#include "tls_openssl.h"
#include "tls_mbedtls.h"
+/**
+ * Initialize TLS library.
+ */
void a_Tls_init()
{
#if ! defined(ENABLE_TLS)
@@ -38,7 +41,7 @@ void a_Tls_init()
#endif
}
-/*
+/**
* Return TLS connection information for a given file
* descriptor, or NULL if no TLS connection was found.
*/
@@ -55,7 +58,7 @@ void *a_Tls_connection(int fd)
#endif
}
-/*
+/**
* The purpose here is to permit a single initial connection to a server.
* Once we have the certificate, know whether we like it -- and whether the
* user accepts it -- HTTP can run through queued sockets as normal.
@@ -75,9 +78,9 @@ int a_Tls_connect_ready(const DilloUrl *url)
#endif
}
-/*
+/**
* Did everything seem proper with the certificate -- no warnings to
- * click through?
+ * click through?.
*/
int a_Tls_certificate_is_clean(const DilloUrl *url)
{
@@ -92,8 +95,8 @@ int a_Tls_certificate_is_clean(const DilloUrl *url)
#endif
}
-/*
- * Clean up the OpenSSL library
+/**
+ * Clean up the TLS library.
*/
void a_Tls_freeall(void)
{