]> granicus.if.org Git - curl/commitdiff
vtls: make sure all _cleanup() functions return void
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 25 Jun 2017 11:06:54 +0000 (13:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 28 Aug 2017 12:56:55 +0000 (14:56 +0200)
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>
lib/vtls/axtls.c
lib/vtls/axtls.h
lib/vtls/gtls.c
lib/vtls/gtls.h

index f0e376640c27cc43efaf41737f4b59a53012b2ac..e063232ea66d205cde7cadae05497b9fcc90ebc0 100644 (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)
index 53797eadbb31e53ecec823d48e775d4eb56366ce..e4c0c1307314a5793f4fd38848e7bf1abae0dc39 100644 (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,
index d55f995e84d7f993ee16921500c4d9ebc5fef70c..3889b8e5f095488bab444408146f7ab8f0489830 100644 (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
index 462c04853e8ca4b052c5b83b7dd47cff1be8a457..3e5d9e0002af5690aa8a3e96ae73e5d201fc003e 100644 (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,