gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 151/163: schannel: workaround for wrong function si


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 151/163: schannel: workaround for wrong function signature in w32api
Date: Sun, 05 Aug 2018 12:37:57 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 07f7c93f92c15e1a4a6489a05b1eb4c7b33cf6a4
Author: Marcel Raad <address@hidden>
AuthorDate: Sun Jul 8 17:00:01 2018 +0200

    schannel: workaround for wrong function signature in w32api
    
    Original MinGW's w32api has CryptHashData's second parameter as BYTE *
    instead of const BYTE *.
    
    Closes https://github.com/curl/curl/pull/2721
---
 lib/vtls/schannel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 2e2b198c4..b72542225 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -2053,7 +2053,8 @@ static void Curl_schannel_checksum(const unsigned char 
*input,
     if(!CryptCreateHash(hProv, algId, 0, 0, &hHash))
       break; /* failed */
 
-    if(!CryptHashData(hHash, (const BYTE*)input, (DWORD)inputlen, 0))
+    /* workaround for original MinGW, should be (const BYTE*) */
+    if(!CryptHashData(hHash, (BYTE*)input, (DWORD)inputlen, 0))
       break; /* failed */
 
     /* get hash size */

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



reply via email to

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