gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 64/256: vtls: make sure every _sha256sum()'s first


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 64/256: vtls: make sure every _sha256sum()'s first arg is const
Date: Fri, 06 Oct 2017 19:42:35 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit c9d526cdbf1d24b9c77b4d0d4f8297e69c76d5f6
Author: Johannes Schindelin <address@hidden>
AuthorDate: Sun Jun 25 13:06:54 2017 +0200

    vtls: make sure every _sha256sum()'s first arg is const
    
    This patch makes the signature of the _sha256sum() functions consistent
    among the SSL backends, in preparation for unifying the way all SSL
    backends are accessed.
    
    Signed-off-by: Johannes Schindelin <address@hidden>
---
 lib/vtls/darwinssl.c | 2 +-
 lib/vtls/darwinssl.h | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c
index 883930c9d..25e4bc83f 100644
--- a/lib/vtls/darwinssl.c
+++ b/lib/vtls/darwinssl.c
@@ -2732,7 +2732,7 @@ void Curl_darwinssl_md5sum(unsigned char *tmp, /* input */
   (void)CC_MD5(tmp, (CC_LONG)tmplen, md5sum);
 }
 
-void Curl_darwinssl_sha256sum(unsigned char *tmp, /* input */
+void Curl_darwinssl_sha256sum(const unsigned char *tmp, /* input */
                               size_t tmplen,
                               unsigned char *sha256sum, /* output */
                               size_t sha256len)
diff --git a/lib/vtls/darwinssl.h b/lib/vtls/darwinssl.h
index 14a84fcd1..51931ee8f 100644
--- a/lib/vtls/darwinssl.h
+++ b/lib/vtls/darwinssl.h
@@ -48,7 +48,7 @@ void Curl_darwinssl_md5sum(unsigned char *tmp, /* input */
                            size_t tmplen,
                            unsigned char *md5sum, /* output */
                            size_t md5len);
-void Curl_darwinssl_sha256sum(unsigned char *tmp, /* input */
+void Curl_darwinssl_sha256sum(const unsigned char *tmp, /* input */
                               size_t tmplen,
                               unsigned char *sha256sum, /* output */
                               size_t sha256len);
@@ -93,8 +93,7 @@ bool Curl_darwinssl_false_start(void);
 #define curlssl_data_pending(x,y) Curl_darwinssl_data_pending(x, y)
 #define curlssl_random(x,y,z) Curl_darwinssl_random(x, 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((unsigned char *)a, b, c, d)
+#define curlssl_sha256sum(a,b,c,d) Curl_darwinssl_sha256sum(a, b, c, d)
 #define curlssl_false_start() Curl_darwinssl_false_start()
 
 #endif /* USE_DARWINSSL */

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]