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:
parent
dd02a9a341
commit
b31d1dcddb
@ -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)
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user