aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/polarssl.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/polarssl.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/polarssl.h')
-rw-r--r--lib/vtls/polarssl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/vtls/polarssl.h b/lib/vtls/polarssl.h
index 57dfb6763..4d34f5f06 100644
--- a/lib/vtls/polarssl.h
+++ b/lib/vtls/polarssl.h
@@ -8,7 +8,7 @@
* \___|\___/|_| \_\_____|
*
* Copyright (C) 2010, Hoi-Ho Chan, <hoiho.chan@gmail.com>
- * Copyright (C) 2012 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2012 - 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
@@ -48,6 +48,9 @@ void Curl_polarssl_session_free(void *ptr);
size_t Curl_polarssl_version(char *buffer, size_t size);
int Curl_polarssl_shutdown(struct connectdata *conn, int sockindex);
+/* Set the API backend definition to PolarSSL */
+#define CURL_SSL_BACKEND CURLSSLBACKEND_POLARSSL
+
/* this backend supports the CAPATH option */
#define have_curlssl_ca_path 1
@@ -66,7 +69,6 @@ int Curl_polarssl_shutdown(struct connectdata *conn, int sockindex);
#define curlssl_version Curl_polarssl_version
#define curlssl_check_cxn(x) ((void)x, -1)
#define curlssl_data_pending(x,y) ((void)x, (void)y, 0)
-#define CURL_SSL_BACKEND CURLSSLBACKEND_POLARSSL
/* This might cause libcurl to use a weeker random!
TODO: implement proper use of Polarssl's CTR-DRBG or HMAC-DRBG and use that