summaryrefslogtreecommitdiff
path: root/lib/vtls/vtls.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-01-17 16:03:49 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-01-17 15:38:22 +0000
commit8bb3443a210e9aed888055b8a3d39646ca234c49 (patch)
tree06c9f91e970faaa14bb8f4e3d4be95468d70a8f9 /lib/vtls/vtls.h
parent30ef1a077996c71e463beae53354e8ffc7a4c90d (diff)
downloadcurl-8bb3443a210e9aed888055b8a3d39646ca234c49.tar.gz
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/vtls.h')
-rw-r--r--lib/vtls/vtls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h
index 71c101920..96321ec98 100644
--- a/lib/vtls/vtls.h
+++ b/lib/vtls/vtls.h
@@ -121,6 +121,9 @@ bool Curl_ssl_cert_status_request(void);
#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */
#else
+/* Set the API backend definition to none */
+#define CURL_SSL_BACKEND CURLSSLBACKEND_NONE
+
/* When SSL support is not present, just define away these function calls */
#define Curl_ssl_init() 1
#define Curl_ssl_cleanup() Curl_nop_stmt
@@ -141,7 +144,6 @@ bool Curl_ssl_cert_status_request(void);
#define Curl_ssl_connect_nonblocking(x,y,z) CURLE_NOT_BUILT_IN
#define Curl_ssl_kill_session(x) Curl_nop_stmt
#define Curl_ssl_random(x,y,z) ((void)x, CURLE_NOT_BUILT_IN)
-#define CURL_SSL_BACKEND CURLSSLBACKEND_NONE
#define Curl_ssl_cert_status_request() FALSE
#endif