Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
57a8c4db
Commit
57a8c4db
authored
Apr 03, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Don't use strncasecmp.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
96c6d457
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
cert.c
dlls/crypt32/cert.c
+1
-1
oid.c
dlls/crypt32/oid.c
+3
-2
store.c
dlls/crypt32/store.c
+8
-7
No files found.
dlls/crypt32/cert.c
View file @
57a8c4db
...
@@ -2151,7 +2151,7 @@ static BOOL find_matching_rdn_attr(DWORD dwFlags, const CERT_NAME_INFO *name,
...
@@ -2151,7 +2151,7 @@ static BOOL find_matching_rdn_attr(DWORD dwFlags, const CERT_NAME_INFO *name,
name
->
rgRDN
[
i
].
rgRDNAttr
[
j
].
Value
.
cbData
)
name
->
rgRDN
[
i
].
rgRDNAttr
[
j
].
Value
.
cbData
)
match
=
FALSE
;
match
=
FALSE
;
else
if
(
dwFlags
&
CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG
)
else
if
(
dwFlags
&
CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG
)
match
=
!
strncase
cmp
(
nameStr
,
attrStr
,
match
=
!
_strni
cmp
(
nameStr
,
attrStr
,
attr
->
Value
.
cbData
);
attr
->
Value
.
cbData
);
else
else
match
=
!
strncmp
(
nameStr
,
attrStr
,
attr
->
Value
.
cbData
);
match
=
!
strncmp
(
nameStr
,
attrStr
,
attr
->
Value
.
cbData
);
...
...
dlls/crypt32/oid.c
View file @
57a8c4db
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#define CRYPT_OID_INFO_HAS_EXTRA_FIELDS
#define CRYPT_OID_INFO_HAS_EXTRA_FIELDS
#include "wincrypt.h"
#include "wincrypt.h"
#include "winreg.h"
#include "winreg.h"
#include "winternl.h"
#include "winuser.h"
#include "winuser.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/list.h"
#include "wine/list.h"
...
@@ -118,7 +119,7 @@ HCRYPTOIDFUNCSET WINAPI CryptInitOIDFunctionSet(LPCSTR pszFuncName,
...
@@ -118,7 +119,7 @@ HCRYPTOIDFUNCSET WINAPI CryptInitOIDFunctionSet(LPCSTR pszFuncName,
EnterCriticalSection
(
&
funcSetCS
);
EnterCriticalSection
(
&
funcSetCS
);
LIST_FOR_EACH_ENTRY
(
cursor
,
&
funcSets
,
struct
OIDFunctionSet
,
next
)
LIST_FOR_EACH_ENTRY
(
cursor
,
&
funcSets
,
struct
OIDFunctionSet
,
next
)
{
{
if
(
!
strcasecmp
(
pszFuncName
,
cursor
->
name
))
if
(
!
_strnicmp
(
pszFuncName
,
cursor
->
name
,
-
1
))
{
{
ret
=
cursor
;
ret
=
cursor
;
break
;
break
;
...
@@ -403,7 +404,7 @@ BOOL WINAPI CryptGetOIDFunctionAddress(HCRYPTOIDFUNCSET hFuncSet,
...
@@ -403,7 +404,7 @@ BOOL WINAPI CryptGetOIDFunctionAddress(HCRYPTOIDFUNCSET hFuncSet,
if
(
!
IS_INTOID
(
pszOID
))
if
(
!
IS_INTOID
(
pszOID
))
{
{
if
(
!
IS_INTOID
(
function
->
entry
.
pszOID
)
&&
if
(
!
IS_INTOID
(
function
->
entry
.
pszOID
)
&&
!
strcasecmp
(
function
->
entry
.
pszOID
,
pszOID
))
!
_strnicmp
(
function
->
entry
.
pszOID
,
pszOID
,
-
1
))
{
{
*
ppvFuncAddr
=
function
->
entry
.
pvFuncAddr
;
*
ppvFuncAddr
=
function
->
entry
.
pvFuncAddr
;
*
phFuncAddr
=
NULL
;
/* FIXME: what should it be? */
*
phFuncAddr
=
NULL
;
/* FIXME: what should it be? */
...
...
dlls/crypt32/store.c
View file @
57a8c4db
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include "winbase.h"
#include "winbase.h"
#include "winnls.h"
#include "winnls.h"
#include "winreg.h"
#include "winreg.h"
#include "winternl.h"
#include "winuser.h"
#include "winuser.h"
#include "wincrypt.h"
#include "wincrypt.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
@@ -873,19 +874,19 @@ HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider,
...
@@ -873,19 +874,19 @@ HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider,
FIXME
(
"unimplemented type %d
\n
"
,
LOWORD
(
lpszStoreProvider
));
FIXME
(
"unimplemented type %d
\n
"
,
LOWORD
(
lpszStoreProvider
));
}
}
}
}
else
if
(
!
strcasecmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_MEMORY
))
else
if
(
!
_strnicmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_MEMORY
,
-
1
))
openFunc
=
CRYPT_MemOpenStore
;
openFunc
=
CRYPT_MemOpenStore
;
else
if
(
!
strcasecmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_FILENAME_W
))
else
if
(
!
_strnicmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_FILENAME_W
,
-
1
))
openFunc
=
CRYPT_FileOpenStore
;
openFunc
=
CRYPT_FileOpenStore
;
else
if
(
!
strcasecmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_SYSTEM
))
else
if
(
!
_strnicmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_SYSTEM
,
-
1
))
openFunc
=
CRYPT_SysOpenStoreW
;
openFunc
=
CRYPT_SysOpenStoreW
;
else
if
(
!
strcasecmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_PKCS7
))
else
if
(
!
_strnicmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_PKCS7
,
-
1
))
openFunc
=
CRYPT_PKCSOpenStore
;
openFunc
=
CRYPT_PKCSOpenStore
;
else
if
(
!
strcasecmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_SERIALIZED
))
else
if
(
!
_strnicmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_SERIALIZED
,
-
1
))
openFunc
=
CRYPT_SerializedOpenStore
;
openFunc
=
CRYPT_SerializedOpenStore
;
else
if
(
!
strcasecmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_COLLECTION
))
else
if
(
!
_strnicmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_COLLECTION
,
-
1
))
openFunc
=
CRYPT_CollectionOpenStore
;
openFunc
=
CRYPT_CollectionOpenStore
;
else
if
(
!
strcasecmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_SYSTEM_REGISTRY
))
else
if
(
!
_strnicmp
(
lpszStoreProvider
,
sz_CERT_STORE_PROV_SYSTEM_REGISTRY
,
-
1
))
openFunc
=
CRYPT_SysRegOpenStoreW
;
openFunc
=
CRYPT_SysRegOpenStoreW
;
else
else
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment