diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2023-12-22 20:39:57 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2023-12-30 01:37:14 +0100 |
commit | 7357e0ee1e8ae1ee9259a3181e400db0d570362b (patch) | |
tree | 026805d25ea7500c160a113eae45c1a8019c7e6c /src/capi.c | |
parent | d3d890f3b48cf6f3494ed0d6d06b37e5376cd188 (diff) |
Add support for OpenSSL, mbedTLS 2 and mbedTLS 3
Brings the previous OpenSSL implementation into src/IO/tls_openssl.c.
Now, the TLS functions have the implementation name as prefix, like
a_Tls_openssl_connect().
The generic interface at IO/tls.h hides the implementation which is
selected at configure time. The appropriate functions of that
implementation are called from IO/tls.c to IO/tls_<impl>.c. In this way,
support for more TLS libraries can easily be added.
In the case of mbedTLS, there are some incompatible changes from version
2 to 3, so we use some ifdefs to fix the differences.
Diffstat (limited to 'src/capi.c')
-rw-r--r-- | src/capi.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ * File: capi.c * * Copyright 2002-2007 Jorge Arellano Cid <jcid@dillo.org> + * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -454,7 +455,7 @@ int a_Capi_open_url(DilloWeb *web, CA_Callback_t Call, void *CbData) !dStrAsciiCasecmp(scheme, "https")) { /* http request */ -#ifndef ENABLE_SSL +#ifndef ENABLE_TLS if (!dStrAsciiCasecmp(scheme, "https")) { if (web->flags & WEB_RootUrl) a_UIcmd_set_msg(web->bw, |