Andrew Talbot : crypt32: Constify some variables.

Alexandre Julliard julliard at winehq.org
Mon Aug 16 12:24:59 CDT 2010


Module: wine
Branch: master
Commit: 761f5ca105096317bd4ded47fc952d3340585cb5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=761f5ca105096317bd4ded47fc952d3340585cb5

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sun Aug 15 20:15:18 2010 +0100

crypt32: Constify some variables.

---

 dlls/crypt32/chain.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index e951ef8..5c63224 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -1343,7 +1343,7 @@ static CERT_POLICIES_INFO *CRYPT_GetPolicies(PCCERT_CONTEXT cert)
     return policies;
 }
 
-static void CRYPT_CheckPolicies(CERT_POLICIES_INFO *policies, CERT_INFO *cert,
+static void CRYPT_CheckPolicies(const CERT_POLICIES_INFO *policies, CERT_INFO *cert,
  DWORD *errorStatus)
 {
     DWORD i;
@@ -3001,7 +3001,7 @@ static BOOL WINAPI verify_basic_constraints_policy(LPCSTR szPolicyOID,
     return TRUE;
 }
 
-static BOOL match_dns_to_subject_alt_name(PCERT_EXTENSION ext,
+static BOOL match_dns_to_subject_alt_name(const CERT_EXTENSION *ext,
  LPCWSTR server_name)
 {
     BOOL matches = FALSE;
@@ -3069,7 +3069,7 @@ static BOOL match_dns_to_subject_alt_name(PCERT_EXTENSION ext,
     return matches;
 }
 
-static BOOL find_matching_domain_component(CERT_NAME_INFO *name,
+static BOOL find_matching_domain_component(const CERT_NAME_INFO *name,
  LPCWSTR component)
 {
     BOOL matches = FALSE;
@@ -3080,7 +3080,7 @@ static BOOL find_matching_domain_component(CERT_NAME_INFO *name,
             if (!strcmp(szOID_DOMAIN_COMPONENT,
              name->rgRDN[i].rgRDNAttr[j].pszObjId))
             {
-                PCERT_RDN_ATTR attr;
+                const CERT_RDN_ATTR *attr;
 
                 attr = &name->rgRDN[i].rgRDNAttr[j];
                 /* Compare with memicmpW rather than strcmpiW in order to avoid
@@ -3088,7 +3088,7 @@ static BOOL find_matching_domain_component(CERT_NAME_INFO *name,
                  * must match one domain component attribute's entire string
                  * value with a case-insensitive match.
                  */
-                matches = !memicmpW(component, (LPWSTR)attr->Value.pbData,
+                matches = !memicmpW(component, (LPCWSTR)attr->Value.pbData,
                  attr->Value.cbData / sizeof(WCHAR));
             }
     return matches;
@@ -3149,7 +3149,7 @@ static BOOL match_domain_component(LPCWSTR allowed_component, DWORD allowed_len,
     return matches;
 }
 
-static BOOL match_common_name(LPCWSTR server_name, PCERT_RDN_ATTR nameAttr)
+static BOOL match_common_name(LPCWSTR server_name, const CERT_RDN_ATTR *nameAttr)
 {
     LPCWSTR allowed = (LPCWSTR)nameAttr->Value.pbData;
     LPCWSTR allowed_component = allowed;




More information about the wine-cvs mailing list