From bf93a1217ce3cc336d75a3b0cb0c1a7ed6a05cb3 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Wed, 6 Jan 2016 07:00:11 +0100 Subject: mbedtls: implement CURLOPT_PINNEDPUBLICKEY --- lib/vtls/mbedtls.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/vtls/mbedtls.h') 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, , et al. * Copyright (C) 2010, Hoi-Ho Chan, * * 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 -- cgit v1.2.3