diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-01-17 16:03:49 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-01-17 15:38:22 +0000 |
commit | 8bb3443a210e9aed888055b8a3d39646ca234c49 (patch) | |
tree | 06c9f91e970faaa14bb8f4e3d4be95468d70a8f9 /lib/vtls/gtls.h | |
parent | 30ef1a077996c71e463beae53354e8ffc7a4c90d (diff) |
vtls: Separate the SSL backend definition from the API setup
Slight code cleanup as the SSL backend #define is mixed up with the API
function setup.
Diffstat (limited to 'lib/vtls/gtls.h')
-rw-r--r-- | lib/vtls/gtls.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vtls/gtls.h b/lib/vtls/gtls.h index 356acce2f..a06a238c7 100644 --- a/lib/vtls/gtls.h +++ b/lib/vtls/gtls.h @@ -55,6 +55,9 @@ void Curl_gtls_md5sum(unsigned char *tmp, /* input */ bool Curl_gtls_cert_status_request(void); +/* Set the API backend definition to GnuTLS */ +#define CURL_SSL_BACKEND CURLSSLBACKEND_GNUTLS + /* API setup for GnuTLS */ #define curlssl_init Curl_gtls_init #define curlssl_cleanup Curl_gtls_cleanup @@ -73,7 +76,6 @@ bool Curl_gtls_cert_status_request(void); #define curlssl_random(x,y,z) Curl_gtls_random(x,y,z) #define curlssl_md5sum(a,b,c,d) Curl_gtls_md5sum(a,b,c,d) #define curlssl_cert_status_request() Curl_gtls_cert_status_request() -#define CURL_SSL_BACKEND CURLSSLBACKEND_GNUTLS #endif /* USE_GNUTLS */ #endif /* HEADER_CURL_GTLS_H */ |