Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
12a848e5
Commit
12a848e5
authored
Oct 23, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Oct 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Partially implement SoftpubLoadMessage for catalog files.
parent
153066c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
softpub.c
dlls/wintrust/softpub.c
+40
-0
No files found.
dlls/wintrust/softpub.c
View file @
12a848e5
...
...
@@ -329,6 +329,43 @@ error:
return
ret
;
}
static
BOOL
SOFTPUB_LoadCatalogMessage
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
HANDLE
catalog
=
INVALID_HANDLE_VALUE
;
if
(
!
data
->
pWintrustData
->
u
.
pCatalog
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
catalog
=
CreateFileW
(
data
->
pWintrustData
->
u
.
pCatalog
->
pcwszCatalogFilePath
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
catalog
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
ret
=
CryptSIPRetrieveSubjectGuid
(
data
->
pWintrustData
->
u
.
pCatalog
->
pcwszCatalogFilePath
,
catalog
,
&
data
->
u
.
pPDSip
->
gSubject
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_GetSIP
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_GetMessageFromFile
(
data
,
catalog
,
data
->
pWintrustData
->
u
.
pCatalog
->
pcwszCatalogFilePath
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_CreateStoreFromMessage
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_DecodeInnerContent
(
data
);
/* FIXME: this loads the catalog file, but doesn't validate the member. */
error:
CloseHandle
(
catalog
);
return
ret
;
}
HRESULT
WINAPI
SoftpubLoadMessage
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
...
...
@@ -346,6 +383,9 @@ HRESULT WINAPI SoftpubLoadMessage(CRYPT_PROVIDER_DATA *data)
case
WTD_CHOICE_FILE
:
ret
=
SOFTPUB_LoadFileMessage
(
data
);
break
;
case
WTD_CHOICE_CATALOG
:
ret
=
SOFTPUB_LoadCatalogMessage
(
data
);
break
;
default:
FIXME
(
"unimplemented for %d
\n
"
,
data
->
pWintrustData
->
dwUnionChoice
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
...
...
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