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
497b67db
Commit
497b67db
authored
Dec 05, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Fail to load a certificate from a PE file if the certificate entry isn't a known type.
parent
d69b00d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
crypt.c
dlls/wintrust/crypt.c
+13
-1
No files found.
dlls/wintrust/crypt.c
View file @
497b67db
...
...
@@ -1028,7 +1028,18 @@ static BOOL WINTRUST_GetSignedMsgFromPEFile(SIP_SUBJECTINFO *pSubjectInfo,
/* app hasn't passed buffer, just get the length */
ret
=
ImageGetCertificateHeader
(
pSubjectInfo
->
hFile
,
dwIndex
,
&
cert
);
if
(
ret
)
{
switch
(
cert
.
wCertificateType
)
{
case
WIN_CERT_TYPE_X509
:
case
WIN_CERT_TYPE_PKCS_SIGNED_DATA
:
*
pcbSignedDataMsg
=
cert
.
dwLength
;
break
;
default:
WARN
(
"unknown certificate type %d
\n
"
,
cert
.
wCertificateType
);
ret
=
FALSE
;
}
}
}
else
{
...
...
@@ -1065,9 +1076,10 @@ static BOOL WINTRUST_GetSignedMsgFromPEFile(SIP_SUBJECTINFO *pSubjectInfo,
*
pdwEncodingType
=
X509_ASN_ENCODING
|
PKCS_7_ASN_ENCODING
;
break
;
default:
FIXME
(
"don't know what to do for encoding type %d
\n
"
,
WARN
(
"don't know what to do for encoding type %d
\n
"
,
pCert
->
wCertificateType
);
*
pdwEncodingType
=
0
;
ret
=
FALSE
;
}
}
}
...
...
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