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
de88fedc
Commit
de88fedc
authored
Aug 20, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add helper function to update signed message data.
parent
15222826
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
msg.c
dlls/crypt32/msg.c
+17
-14
No files found.
dlls/crypt32/msg.c
View file @
de88fedc
...
...
@@ -1089,6 +1089,20 @@ static BOOL CSignedMsgData_Sign(CSignedMsgData *msg_data)
return
ret
;
}
static
BOOL
CSignedMsgData_Update
(
CSignedMsgData
*
msg_data
,
const
BYTE
*
pbData
,
DWORD
cbData
,
BOOL
fFinal
)
{
BOOL
ret
=
CSignedMsgData_UpdateHash
(
msg_data
,
pbData
,
cbData
);
if
(
ret
&&
fFinal
)
{
ret
=
CSignedMsgData_UpdateAuthenticatedAttributes
(
msg_data
);
if
(
ret
)
ret
=
CSignedMsgData_Sign
(
msg_data
);
}
return
ret
;
}
static
BOOL
CSignedEncodeMsg_Update
(
HCRYPTMSG
hCryptMsg
,
const
BYTE
*
pbData
,
DWORD
cbData
,
BOOL
fFinal
)
{
...
...
@@ -1097,14 +1111,7 @@ static BOOL CSignedEncodeMsg_Update(HCRYPTMSG hCryptMsg, const BYTE *pbData,
if
(
msg
->
base
.
streamed
||
(
msg
->
base
.
open_flags
&
CMSG_DETACHED_FLAG
))
{
ret
=
CSignedMsgData_UpdateHash
(
&
msg
->
msg_data
,
pbData
,
cbData
);
if
(
ret
&&
fFinal
)
{
ret
=
CSignedMsgData_UpdateAuthenticatedAttributes
(
&
msg
->
msg_data
);
if
(
ret
)
ret
=
CSignedMsgData_Sign
(
&
msg
->
msg_data
);
}
ret
=
CSignedMsgData_Update
(
&
msg
->
msg_data
,
pbData
,
cbData
,
fFinal
);
if
(
msg
->
base
.
streamed
)
FIXME
(
"streamed partial stub
\n
"
);
}
...
...
@@ -1127,12 +1134,8 @@ static BOOL CSignedEncodeMsg_Update(HCRYPTMSG hCryptMsg, const BYTE *pbData,
else
ret
=
TRUE
;
if
(
ret
)
ret
=
CSignedMsgData_UpdateHash
(
&
msg
->
msg_data
,
pbData
,
cbData
);
if
(
ret
)
ret
=
CSignedMsgData_UpdateAuthenticatedAttributes
(
&
msg
->
msg_data
);
if
(
ret
)
ret
=
CSignedMsgData_Sign
(
&
msg
->
msg_data
);
ret
=
CSignedMsgData_Update
(
&
msg
->
msg_data
,
pbData
,
cbData
,
fFinal
);
}
}
return
ret
;
...
...
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