diff options
author | Thomas Glanzmann <thomas@glanzmann.de> | 2016-01-06 07:00:11 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-01-10 00:17:26 +0100 |
commit | bf93a1217ce3cc336d75a3b0cb0c1a7ed6a05cb3 (patch) | |
tree | a0343d959a69b4396b3260dd1d761cc453556ac7 /lib/vtls/mbedtls.h | |
parent | 5da7461a55ea681829820d8268728e88b7ceb3f6 (diff) |
mbedtls: implement CURLOPT_PINNEDPUBLICKEY
Diffstat (limited to 'lib/vtls/mbedtls.h')
-rw-r--r-- | lib/vtls/mbedtls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vtls/mbedtls.h b/lib/vtls/mbedtls.h index b930c1000..de386285d 100644 --- a/lib/vtls/mbedtls.h +++ b/lib/vtls/mbedtls.h @@ -7,6 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * + * Copyright (C) 2012 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 2010, Hoi-Ho Chan, <hoiho.chan@gmail.com> * * This software is licensed as described in the file COPYING, which @@ -63,6 +64,7 @@ int Curl_mbedtls_shutdown(struct connectdata *conn, int sockindex); #define curlssl_check_cxn(x) (x=x, -1) #define curlssl_data_pending(x,y) (x=x, y=y, 0) #define CURL_SSL_BACKEND CURLSSLBACKEND_MBEDTLS +#define curlssl_sha256sum(a,b,c,d) mbedtls_sha256(a,b,c,0) /* This might cause libcurl to use a weeker random! TODO: implement proper use of Polarssl's CTR-DRBG or HMAC-DRBG and use that |