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
1bfb6029
Commit
1bfb6029
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: Separate loading a message from a WINTRUST_FILE_INFO into a helper function.
parent
6455674c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
23 deletions
+31
-23
softpub.c
dlls/wintrust/softpub.c
+31
-23
No files found.
dlls/wintrust/softpub.c
View file @
1bfb6029
...
...
@@ -298,6 +298,36 @@ static BOOL SOFTPUB_LoadCertMessage(CRYPT_PROVIDER_DATA *data)
return
ret
;
}
static
BOOL
SOFTPUB_LoadFileMessage
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
if
(
!
data
->
pWintrustData
->
u
.
pFile
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
ret
=
FALSE
;
goto
error
;
}
ret
=
SOFTPUB_OpenFile
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_GetFileSubject
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_GetSIP
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_GetMessageFromFile
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_CreateStoreFromMessage
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_DecodeInnerContent
(
data
);
error:
return
ret
;
}
HRESULT
WINAPI
SoftpubLoadMessage
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
...
...
@@ -313,28 +343,7 @@ HRESULT WINAPI SoftpubLoadMessage(CRYPT_PROVIDER_DATA *data)
ret
=
SOFTPUB_LoadCertMessage
(
data
);
break
;
case
WTD_CHOICE_FILE
:
if
(
!
data
->
pWintrustData
->
u
.
pFile
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
ret
=
FALSE
;
goto
error
;
}
ret
=
SOFTPUB_OpenFile
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_GetFileSubject
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_GetSIP
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_GetMessageFromFile
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_CreateStoreFromMessage
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_DecodeInnerContent
(
data
);
ret
=
SOFTPUB_LoadFileMessage
(
data
);
break
;
default:
FIXME
(
"unimplemented for %d
\n
"
,
data
->
pWintrustData
->
dwUnionChoice
);
...
...
@@ -342,7 +351,6 @@ HRESULT WINAPI SoftpubLoadMessage(CRYPT_PROVIDER_DATA *data)
ret
=
FALSE
;
}
error:
if
(
!
ret
)
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]
=
GetLastError
();
...
...
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