Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6ccdbab6
Commit
6ccdbab6
authored
May 18, 2012
by
Juan Lang
Committed by
Alexandre Julliard
May 31, 2012
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Don't fail if HCRYPTPROV and PCRYPT_KEY_PROV_INFO parameters are both non-NULL.
parent
ecfa9b87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
cert.c
dlls/crypt32/cert.c
+0
-5
cert.c
dlls/crypt32/tests/cert.c
+1
-2
No files found.
dlls/crypt32/cert.c
View file @
6ccdbab6
...
...
@@ -3201,11 +3201,6 @@ PCCERT_CONTEXT WINAPI CertCreateSelfSignCertificate(HCRYPTPROV_OR_NCRYPT_KEY_HAN
releaseContext
=
TRUE
;
}
}
else
if
(
pKeyProvInfo
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
NULL
;
}
CryptExportPublicKeyInfo
(
hProv
,
dwKeySpec
,
X509_ASN_ENCODING
,
NULL
,
&
pubKeySize
);
...
...
dlls/crypt32/tests/cert.c
View file @
6ccdbab6
...
...
@@ -2156,11 +2156,11 @@ static void testCreateSelfSignCert(void)
SetLastError
(
0xdeadbeef
);
context
=
pCertCreateSelfSignCertificate
(
csp
,
&
name
,
0
,
&
info
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
context
==
NULL
,
"expected failure
\n
"
);
if
(
context
!=
NULL
)
CertFreeCertificateContext
(
context
);
else
todo_wine
ok
(
GetLastError
()
==
NTE_NO_KEY
,
"expected NTE_NO_KEY, got %08x
\n
"
,
GetLastError
());
/* Again, with a CSP, AT_SIGNATURE and key info */
...
...
@@ -2168,7 +2168,6 @@ static void testCreateSelfSignCert(void)
SetLastError
(
0xdeadbeef
);
context
=
pCertCreateSelfSignCertificate
(
csp
,
&
name
,
0
,
&
info
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
context
!=
NULL
,
"CertCreateSelfSignCertificate failed: %08x
\n
"
,
GetLastError
());
if
(
context
)
...
...
Vitaly Lipatov
@lav
mentioned in commit
1717d481
·
Sep 03, 2020
mentioned in commit
1717d481
mentioned in commit 1717d481c2131eac6e4310e33a73858bdd7eae8b
Toggle commit list
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