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
db513c0c
Commit
db513c0c
authored
Jul 31, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Remove bad special case, it isn't necessary since the outer content…
crypt32: Remove bad special case, it isn't necessary since the outer content specifies the hash algorithm.
parent
e25b81fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
26 deletions
+5
-26
cert.c
dlls/crypt32/cert.c
+5
-26
No files found.
dlls/crypt32/cert.c
View file @
db513c0c
...
...
@@ -1353,37 +1353,16 @@ static BOOL CRYPT_VerifyCertSignatureFromPublicKeyInfo(HCRYPTPROV hCryptProv,
info
=
CryptFindOIDInfo
(
CRYPT_OID_INFO_OID_KEY
,
signedCert
->
SignatureAlgorithm
.
pszObjId
,
0
);
if
(
!
info
||
(
info
->
dwGroupId
!=
CRYPT_PUBKEY_ALG_OID_GROUP_ID
&&
info
->
dwGroupId
!=
CRYPT_SIGN_ALG_OID_GROUP_ID
))
if
(
!
info
||
info
->
dwGroupId
!=
CRYPT_SIGN_ALG_OID_GROUP_ID
)
{
SetLastError
(
NTE_BAD_ALGID
);
return
FALSE
;
}
if
(
info
->
dwGroupId
==
CRYPT_PUBKEY_ALG_OID_GROUP_ID
)
{
switch
(
info
->
u
.
Algid
)
{
case
CALG_RSA_KEYX
:
pubKeyID
=
CALG_RSA_SIGN
;
hashID
=
CALG_SHA1
;
break
;
case
CALG_RSA_SIGN
:
pubKeyID
=
CALG_RSA_SIGN
;
hashID
=
CALG_SHA1
;
break
;
default:
FIXME
(
"unimplemented for %s
\n
"
,
pubKeyInfo
->
Algorithm
.
pszObjId
);
return
FALSE
;
}
}
hashID
=
info
->
u
.
Algid
;
if
(
info
->
ExtraInfo
.
cbData
>=
sizeof
(
ALG_ID
))
pubKeyID
=
*
(
ALG_ID
*
)
info
->
ExtraInfo
.
pbData
;
else
{
hashID
=
info
->
u
.
Algid
;
if
(
info
->
ExtraInfo
.
cbData
>=
sizeof
(
ALG_ID
))
pubKeyID
=
*
(
ALG_ID
*
)
info
->
ExtraInfo
.
pbData
;
else
pubKeyID
=
hashID
;
}
pubKeyID
=
hashID
;
/* Load the default provider if necessary */
if
(
!
hCryptProv
)
hCryptProv
=
CRYPT_GetDefaultProvider
();
...
...
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