aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-06-20 11:32:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-08-28 14:56:57 +0200
commit5d9fcd2165fd1aa77c47b1d63cb33bfa3c21ec21 (patch)
treeaca0b0b590706b4130f942c5a8252062c277fb21 /lib/vtls
parent6f1eec14e07b0043cf5f209f038e221b468ad72d (diff)
axtls: use Curl_none_* versions of init() and cleanup()
There are convenient no-op versions of the init/cleanup functions now, no need to define private ones for axTLS. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/axtls.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/lib/vtls/axtls.c b/lib/vtls/axtls.c
index ca182e507..ceebc9a7a 100644
--- a/lib/vtls/axtls.c
+++ b/lib/vtls/axtls.c
@@ -47,21 +47,6 @@
#include "curl_memory.h"
#include "memdebug.h"
-
-/* Global axTLS init, called from Curl_ssl_init() */
-static int Curl_axtls_init(void)
-{
-/* axTLS has no global init. Everything is done through SSL and SSL_CTX
- * structs stored in connectdata structure. Perhaps can move to axtls.h.
- */
- return 1;
-}
-
-static void Curl_axtls_cleanup(void)
-{
- /* axTLS has no global cleanup. Perhaps can move this to axtls.h. */
-}
-
static CURLcode map_error_to_curl(int axtls_err)
{
switch(axtls_err) {
@@ -705,8 +690,13 @@ const struct Curl_ssl Curl_ssl_axtls = {
0, /* have_ssl_ctx */
0, /* support_https_proxy */
- Curl_axtls_init, /* init */
- Curl_axtls_cleanup, /* cleanup */
+ /*
+ * axTLS has no global init. Everything is done through SSL and SSL_CTX
+ * structs stored in connectdata structure.
+ */
+ Curl_none_init, /* init */
+ /* axTLS has no global cleanup. */
+ Curl_none_cleanup, /* cleanup */
Curl_axtls_version, /* version */
Curl_axtls_check_cxn, /* check_cxn */
Curl_axtls_shutdown, /* shutdown */