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
0546cf1a
Commit
0546cf1a
authored
Jun 28, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Jun 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add a stub get param function for data messages and remove stub message…
crypt32: Add a stub get param function for data messages and remove stub message from open function.
parent
74bf713b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
msg.c
dlls/crypt32/msg.c
+18
-1
msg.c
dlls/crypt32/tests/msg.c
+1
-1
No files found.
dlls/crypt32/msg.c
View file @
0546cf1a
...
...
@@ -109,6 +109,23 @@ static BOOL CDataEncodeMsg_Update(HCRYPTMSG hCryptMsg, const BYTE *pbData,
return
ret
;
}
static
BOOL
CDataEncodeMsg_GetParam
(
HCRYPTMSG
hCryptMsg
,
DWORD
dwParamType
,
DWORD
dwIndex
,
void
*
pvData
,
DWORD
*
pcbData
)
{
BOOL
ret
=
FALSE
;
switch
(
dwParamType
)
{
case
CMSG_CONTENT_PARAM
:
case
CMSG_BARE_CONTENT_PARAM
:
FIXME
(
"stub
\n
"
);
break
;
default:
SetLastError
(
CRYPT_E_INVALID_MSG_TYPE
);
}
return
ret
;
}
static
HCRYPTMSG
CDataEncodeMsg_Open
(
DWORD
dwFlags
,
const
void
*
pvMsgEncodeInfo
,
LPSTR
pszInnerContentObjID
,
PCMSG_STREAM_INFO
pStreamInfo
)
{
...
...
@@ -119,13 +136,13 @@ static HCRYPTMSG CDataEncodeMsg_Open(DWORD dwFlags, const void *pvMsgEncodeInfo,
SetLastError
(
E_INVALIDARG
);
return
NULL
;
}
FIXME
(
"semi-stub
\n
"
);
msg
=
CryptMemAlloc
(
sizeof
(
CDataEncodeMsg
));
if
(
msg
)
{
CryptMsgBase_Init
((
CryptMsgBase
*
)
msg
,
dwFlags
,
pStreamInfo
);
msg
->
base
.
close
=
CDataEncodeMsg_Close
;
msg
->
base
.
update
=
CDataEncodeMsg_Update
;
msg
->
base
.
get_param
=
CDataEncodeMsg_GetParam
;
msg
->
bare_content_len
=
sizeof
(
empty_data_content
);
msg
->
bare_content
=
(
LPBYTE
)
empty_data_content
;
}
...
...
dlls/crypt32/tests/msg.c
View file @
0546cf1a
...
...
@@ -369,6 +369,7 @@ static void test_data_msg_get_param(void)
size
=
0
;
ret
=
CryptMsgGetParam
(
msg
,
CMSG_BARE_CONTENT_PARAM
,
0
,
NULL
,
&
size
);
ok
(
ret
,
"CryptMsgGetParam failed: %08x
\n
"
,
GetLastError
());
}
/* But for this type of message, the signer and hash aren't applicable,
* and the type isn't available.
*/
...
...
@@ -384,7 +385,6 @@ static void test_data_msg_get_param(void)
ret
=
CryptMsgGetParam
(
msg
,
CMSG_TYPE_PARAM
,
0
,
NULL
,
&
size
);
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_INVALID_MSG_TYPE
,
"Expected CRYPT_E_INVALID_MSG_TYPE, got %x
\n
"
,
GetLastError
());
}
CryptMsgClose
(
msg
);
}
...
...
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