aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/cyassl.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/cyassl.h
parent30ef1a077996c71e463beae53354e8ffc7a4c90d (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/cyassl.h')
-rw-r--r--lib/vtls/cyassl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/vtls/cyassl.h b/lib/vtls/cyassl.h
index a691e16c3..4d3ea544c 100644
--- a/lib/vtls/cyassl.h
+++ b/lib/vtls/cyassl.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -47,6 +47,9 @@ int Curl_cyassl_random(struct SessionHandle *data,
unsigned char *entropy,
size_t length);
+/* Set the API backend definition to Schannel */
+#define CURL_SSL_BACKEND CURLSSLBACKEND_CYASSL
+
/* API setup for CyaSSL */
#define curlssl_init Curl_cyassl_init
#define curlssl_cleanup() Curl_nop_stmt
@@ -63,7 +66,6 @@ int Curl_cyassl_random(struct SessionHandle *data,
#define curlssl_check_cxn(x) ((void)x, -1)
#define curlssl_data_pending(x,y) Curl_cyassl_data_pending(x,y)
#define curlssl_random(x,y,z) Curl_cyassl_random(x,y,z)
-#define CURL_SSL_BACKEND CURLSSLBACKEND_CYASSL
#endif /* USE_CYASSL */
#endif /* HEADER_CURL_CYASSL_H */