diff options
author | moparisthebest <admin@moparisthebest.com> | 2016-04-21 21:21:45 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-24 12:27:39 +0200 |
commit | 33623d7196dd95bfeeb2b4008911459aa165d876 (patch) | |
tree | 0c4411a7dbee612ffbb734cb08feb51f15fb349d /lib/vtls/polarssl.h | |
parent | 7639a9cfc9d4e9a97ee931c1177a544b4bec8f6f (diff) |
PolarSSL: Implement public key pinning
Diffstat (limited to 'lib/vtls/polarssl.h')
-rw-r--r-- | lib/vtls/polarssl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vtls/polarssl.h b/lib/vtls/polarssl.h index 1ab5a841f..49548e907 100644 --- a/lib/vtls/polarssl.h +++ b/lib/vtls/polarssl.h @@ -26,6 +26,8 @@ #ifdef USE_POLARSSL +#include <polarssl/sha256.h> + /* Called on first use PolarSSL, setup threading if supported */ int Curl_polarssl_init(void); void Curl_polarssl_cleanup(void); @@ -65,6 +67,7 @@ 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 curlssl_sha256sum(a,b,c,d) 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 |