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
f8809821
Commit
f8809821
authored
Sep 27, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix CryptQueryObject for embedded PKCS7 signatures.
parent
d78a5829
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
object.c
dlls/crypt32/object.c
+10
-7
No files found.
dlls/crypt32/object.c
View file @
f8809821
...
...
@@ -365,25 +365,28 @@ static BOOL CRYPT_QueryEmbeddedMessageObject(DWORD dwObjectType,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
file
!=
INVALID_HANDLE_VALUE
)
{
CERT_BLOB
blob
;
DWORD
len
;
ret
=
ImageGetCertificateData
(
file
,
0
,
NULL
,
&
blob
.
cbData
);
ret
=
ImageGetCertificateData
(
file
,
0
,
NULL
,
&
len
);
if
(
ret
)
{
blob
.
pbData
=
HeapAlloc
(
GetProcessHeap
(),
0
,
blob
.
cbData
);
if
(
blob
.
pbData
)
WIN_CERTIFICATE
*
winCert
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
winCert
)
{
ret
=
ImageGetCertificateData
(
file
,
0
,
(
WIN_CERTIFICATE
*
)
blob
.
pbData
,
&
blob
.
cbData
);
ret
=
ImageGetCertificateData
(
file
,
0
,
winCert
,
&
len
);
if
(
ret
)
{
CERT_BLOB
blob
=
{
winCert
->
dwLength
,
winCert
->
bCertificate
};
ret
=
CRYPT_QueryMessageObject
(
CERT_QUERY_OBJECT_BLOB
,
&
blob
,
CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED
,
pdwMsgAndCertEncodingType
,
NULL
,
phCertStore
,
phMsg
);
if
(
ret
&&
pdwContentType
)
*
pdwContentType
=
CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED
;
}
HeapFree
(
GetProcessHeap
(),
0
,
blob
.
pbData
);
HeapFree
(
GetProcessHeap
(),
0
,
winCert
);
}
}
CloseHandle
(
file
);
...
...
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