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
99f6894c
Commit
99f6894c
authored
Apr 17, 2011
by
Christian Inci
Committed by
Alexandre Julliard
Apr 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix CertStrToName's CERT_NAME_STR_NO_QUOTING_FLAG usage.
parent
35103290
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
str.c
dlls/crypt32/str.c
+3
-3
str.c
dlls/crypt32/tests/str.c
+1
-1
No files found.
dlls/crypt32/str.c
View file @
99f6894c
...
...
@@ -971,7 +971,7 @@ static BOOL CRYPT_EncodeValue(DWORD dwCertEncodingType,
}
static
BOOL
CRYPT_ValueToRDN
(
DWORD
dwCertEncodingType
,
PCERT_NAME_INFO
info
,
PCCRYPT_OID_INFO
keyOID
,
struct
X500TokenW
*
value
,
LPCWSTR
*
ppszError
)
PCCRYPT_OID_INFO
keyOID
,
struct
X500TokenW
*
value
,
DWORD
dwStrType
,
LPCWSTR
*
ppszError
)
{
BOOL
ret
=
FALSE
;
...
...
@@ -1005,7 +1005,7 @@ static BOOL CRYPT_ValueToRDN(DWORD dwCertEncodingType, PCERT_NAME_INFO info,
types
=
defaultTypes
;
/* Remove surrounding quotes */
if
(
value
->
start
[
0
]
==
'"'
)
if
(
value
->
start
[
0
]
==
'"'
&&
!
(
dwStrType
&
CERT_NAME_STR_NO_QUOTING_FLAG
)
)
{
value
->
start
++
;
value
->
end
--
;
...
...
@@ -1095,7 +1095,7 @@ BOOL WINAPI CertStrToNameW(DWORD dwCertEncodingType, LPCWSTR pszX500,
{
str
=
token
.
end
;
ret
=
CRYPT_ValueToRDN
(
dwCertEncodingType
,
&
info
,
keyOID
,
&
token
,
ppszError
);
keyOID
,
&
token
,
dwStrType
,
ppszError
);
}
}
}
...
...
dlls/crypt32/tests/str.c
View file @
99f6894c
...
...
@@ -828,7 +828,7 @@ static void test_CertStrToNameA(void)
"Expected ERROR_SUCCESS, got %08x
\n
"
,
GetLastError
());
ret
=
pCertStrToNameA
(
X509_ASN_ENCODING
,
"CN=
\"
abc
\"
"
,
CERT_NAME_STR_NO_QUOTING_FLAG
,
NULL
,
buf
,
&
size
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_MORE_DATA
,
ok
(
!
ret
&&
GetLastError
()
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %08x
\n
"
,
GetLastError
());
for
(
i
=
0
;
i
<
sizeof
(
namesA
)
/
sizeof
(
namesA
[
0
]);
i
++
)
{
...
...
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