summaryrefslogtreecommitdiff
path: root/lib/vtls/darwinssl.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-08-02 23:22:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-08-03 10:24:06 +0200
commitfa2f134cbd7eea43dd9829cae1006264acd20356 (patch)
tree25c337bf62a64761048d1c8df14cb17dae69d6cd /lib/vtls/darwinssl.h
parent58752b78c72ce3cb8a91e353f4be12cbfd535608 (diff)
downloadcurl-fa2f134cbd7eea43dd9829cae1006264acd20356.tar.gz
darwinssl: fix curlssl_sha256sum() compiler warnings on first argument
Diffstat (limited to 'lib/vtls/darwinssl.h')
-rw-r--r--lib/vtls/darwinssl.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/vtls/darwinssl.h b/lib/vtls/darwinssl.h
index fd372ffa0..13e78515a 100644
--- a/lib/vtls/darwinssl.h
+++ b/lib/vtls/darwinssl.h
@@ -49,9 +49,9 @@ void Curl_darwinssl_md5sum(unsigned char *tmp, /* input */
unsigned char *md5sum, /* output */
size_t md5len);
void Curl_darwinssl_sha256sum(unsigned char *tmp, /* input */
- size_t tmplen,
- unsigned char *sha256sum, /* output */
- size_t sha256len);
+ size_t tmplen,
+ unsigned char *sha256sum, /* output */
+ size_t sha256len);
bool Curl_darwinssl_false_start(void);
/* Set the API backend definition to SecureTransport */
@@ -93,7 +93,8 @@ bool Curl_darwinssl_false_start(void);
#define curlssl_data_pending(x,y) Curl_darwinssl_data_pending(x, y)
#define curlssl_random(x,y,z) ((void)x, Curl_darwinssl_random(y,z))
#define curlssl_md5sum(a,b,c,d) Curl_darwinssl_md5sum(a,b,c,d)
-#define curlssl_sha256sum(a,b,c,d) Curl_darwinssl_sha256sum(a,b,c,d)
+#define curlssl_sha256sum(a,b,c,d) \
+ Curl_darwinssl_sha256sum((unsigned char *)a, b, c, d)
#define curlssl_false_start() Curl_darwinssl_false_start()
#endif /* USE_DARWINSSL */