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
b2ab45b7
Commit
b2ab45b7
authored
Nov 20, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Only match RDN attributes whose lengths are identical.
parent
8e51a866
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
cert.c
dlls/crypt32/cert.c
+8
-2
No files found.
dlls/crypt32/cert.c
View file @
b2ab45b7
...
@@ -1853,7 +1853,10 @@ static BOOL find_matching_rdn_attr(DWORD dwFlags, const CERT_NAME_INFO *name,
...
@@ -1853,7 +1853,10 @@ static BOOL find_matching_rdn_attr(DWORD dwFlags, const CERT_NAME_INFO *name,
(
LPCWSTR
)
name
->
rgRDN
[
i
].
rgRDNAttr
[
j
].
Value
.
pbData
;
(
LPCWSTR
)
name
->
rgRDN
[
i
].
rgRDNAttr
[
j
].
Value
.
pbData
;
LPCWSTR
attrStr
=
(
LPCWSTR
)
attr
->
Value
.
pbData
;
LPCWSTR
attrStr
=
(
LPCWSTR
)
attr
->
Value
.
pbData
;
if
(
dwFlags
&
CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG
)
if
(
attr
->
Value
.
cbData
!=
name
->
rgRDN
[
i
].
rgRDNAttr
[
j
].
Value
.
cbData
)
match
=
FALSE
;
else
if
(
dwFlags
&
CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG
)
match
=
!
strncmpiW
(
nameStr
,
attrStr
,
match
=
!
strncmpiW
(
nameStr
,
attrStr
,
attr
->
Value
.
cbData
/
sizeof
(
WCHAR
));
attr
->
Value
.
cbData
/
sizeof
(
WCHAR
));
else
else
...
@@ -1870,7 +1873,10 @@ static BOOL find_matching_rdn_attr(DWORD dwFlags, const CERT_NAME_INFO *name,
...
@@ -1870,7 +1873,10 @@ static BOOL find_matching_rdn_attr(DWORD dwFlags, const CERT_NAME_INFO *name,
(
LPCSTR
)
name
->
rgRDN
[
i
].
rgRDNAttr
[
j
].
Value
.
pbData
;
(
LPCSTR
)
name
->
rgRDN
[
i
].
rgRDNAttr
[
j
].
Value
.
pbData
;
LPCSTR
attrStr
=
(
LPCSTR
)
attr
->
Value
.
pbData
;
LPCSTR
attrStr
=
(
LPCSTR
)
attr
->
Value
.
pbData
;
if
(
dwFlags
&
CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG
)
if
(
attr
->
Value
.
cbData
!=
name
->
rgRDN
[
i
].
rgRDNAttr
[
j
].
Value
.
cbData
)
match
=
FALSE
;
else
if
(
dwFlags
&
CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG
)
match
=
!
strncasecmp
(
nameStr
,
attrStr
,
match
=
!
strncasecmp
(
nameStr
,
attrStr
,
attr
->
Value
.
cbData
);
attr
->
Value
.
cbData
);
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