1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

vtls: make sure all _cleanup() functions return void

This patch makes the signature of the _cleanup() functions consistent
among the SSL backends, in preparation for unifying the way all SSL
backends are accessed.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2017-06-25 13:06:54 +02:00 committed by Daniel Stenberg
parent dd02a9a341
commit b31d1dcddb
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
4 changed files with 4 additions and 6 deletions

View File

@ -57,10 +57,9 @@ int Curl_axtls_init(void)
return 1;
}
int Curl_axtls_cleanup(void)
void Curl_axtls_cleanup(void)
{
/* axTLS has no global cleanup. Perhaps can move this to axtls.h. */
return 1;
}
static CURLcode map_error_to_curl(int axtls_err)

View File

@ -28,7 +28,7 @@
#include "urldata.h"
int Curl_axtls_init(void);
int Curl_axtls_cleanup(void);
void Curl_axtls_cleanup(void);
CURLcode Curl_axtls_connect(struct connectdata *conn, int sockindex);
CURLcode Curl_axtls_connect_nonblocking(
struct connectdata *conn,

View File

@ -200,13 +200,12 @@ int Curl_gtls_init(void)
return ret;
}
int Curl_gtls_cleanup(void)
void Curl_gtls_cleanup(void)
{
if(gtls_inited) {
gnutls_global_deinit();
gtls_inited = FALSE;
}
return 1;
}
#ifndef CURL_DISABLE_VERBOSE_STRINGS

View File

@ -29,7 +29,7 @@
#include "urldata.h"
int Curl_gtls_init(void);
int Curl_gtls_cleanup(void);
void Curl_gtls_cleanup(void);
CURLcode Curl_gtls_connect(struct connectdata *conn, int sockindex);
CURLcode Curl_gtls_connect_nonblocking(struct connectdata *conn,
int sockindex,