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
7e65d943
Commit
7e65d943
authored
Jul 09, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Jul 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Make a copy of a passed-in stream info rather than assuming the pointer will live forever.
parent
fd05fe0d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
msg.c
dlls/crypt32/msg.c
+13
-3
No files found.
dlls/crypt32/msg.c
View file @
7e65d943
...
@@ -39,7 +39,8 @@ typedef struct _CryptMsgBase
...
@@ -39,7 +39,8 @@ typedef struct _CryptMsgBase
{
{
LONG
ref
;
LONG
ref
;
DWORD
open_flags
;
DWORD
open_flags
;
PCMSG_STREAM_INFO
stream_info
;
BOOL
streamed
;
CMSG_STREAM_INFO
stream_info
;
BOOL
finalized
;
BOOL
finalized
;
CryptMsgCloseFunc
close
;
CryptMsgCloseFunc
close
;
CryptMsgUpdateFunc
update
;
CryptMsgUpdateFunc
update
;
...
@@ -52,7 +53,16 @@ static inline void CryptMsgBase_Init(CryptMsgBase *msg, DWORD dwFlags,
...
@@ -52,7 +53,16 @@ static inline void CryptMsgBase_Init(CryptMsgBase *msg, DWORD dwFlags,
{
{
msg
->
ref
=
1
;
msg
->
ref
=
1
;
msg
->
open_flags
=
dwFlags
;
msg
->
open_flags
=
dwFlags
;
msg
->
stream_info
=
pStreamInfo
;
if
(
pStreamInfo
)
{
msg
->
streamed
=
TRUE
;
memcpy
(
&
msg
->
stream_info
,
pStreamInfo
,
sizeof
(
msg
->
stream_info
));
}
else
{
msg
->
streamed
=
FALSE
;
memset
(
&
msg
->
stream_info
,
0
,
sizeof
(
msg
->
stream_info
));
}
msg
->
close
=
close
;
msg
->
close
=
close
;
msg
->
get_param
=
get_param
;
msg
->
get_param
=
get_param
;
msg
->
update
=
update
;
msg
->
update
=
update
;
...
@@ -106,7 +116,7 @@ static BOOL CDataEncodeMsg_Update(HCRYPTMSG hCryptMsg, const BYTE *pbData,
...
@@ -106,7 +116,7 @@ static BOOL CDataEncodeMsg_Update(HCRYPTMSG hCryptMsg, const BYTE *pbData,
ret
=
CryptEncodeObjectEx
(
X509_ASN_ENCODING
,
X509_OCTET_STRING
,
ret
=
CryptEncodeObjectEx
(
X509_ASN_ENCODING
,
X509_OCTET_STRING
,
&
blob
,
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
&
msg
->
bare_content
,
&
blob
,
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
&
msg
->
bare_content
,
&
msg
->
bare_content_len
);
&
msg
->
bare_content_len
);
if
(
ret
&&
msg
->
base
.
stream
_info
)
if
(
ret
&&
msg
->
base
.
stream
ed
)
FIXME
(
"stream info unimplemented
\n
"
);
FIXME
(
"stream info unimplemented
\n
"
);
}
}
}
}
...
...
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