gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 89/178: schannel: fix warning


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 89/178: schannel: fix warning
Date: Wed, 23 May 2018 12:25:24 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 4d660fdcb05e1201ea90c5016693f13a9af68c48
Author: Jay Satiro <address@hidden>
AuthorDate: Tue Apr 17 13:47:01 2018 -0400

    schannel: fix warning
    
    - Fix warning 'integer from pointer without a cast' on 3rd arg in
      CertOpenStore. The arg type HCRYPTPROV may be a pointer or integer
      type of the same size.
    
    Follow-up to e35b025.
    
    Caught by Marc's CI builds.
---
 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 cbcc9c532..4f3f0ce85 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -441,7 +441,8 @@ schannel_connect_step1(struct connectdata *conn, int 
sockindex)
         return result;
       }
 
-      cert_store = CertOpenStore(CURL_CERT_STORE_PROV_SYSTEM, 0, NULL,
+      cert_store = CertOpenStore(CURL_CERT_STORE_PROV_SYSTEM, 0,
+                                 (HCRYPTPROV)NULL,
                                  cert_store_name, cert_store_path);
       if(!cert_store) {
         Curl_unicodefree(cert_path);

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



reply via email to

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