Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
29cae46f
Commit
29cae46f
authored
Aug 10, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Implement decoding SPC links.
parent
44047e02
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
Makefile.in
dlls/wintrust/Makefile.in
+1
-1
asn.c
dlls/wintrust/asn.c
+0
-0
asn.c
dlls/wintrust/tests/asn.c
+4
-8
No files found.
dlls/wintrust/Makefile.in
View file @
29cae46f
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
wintrust.dll
IMPORTLIB
=
libwintrust.
$(IMPLIBEXT)
IMPORTS
=
crypt32 user32 advapi32 kernel32
IMPORTS
=
crypt32 user32 advapi32 kernel32
ntdll
DELAYIMPORTS
=
imagehlp
C_SRCS
=
\
...
...
dlls/wintrust/asn.c
View file @
29cae46f
This diff is collapsed.
Click to expand it.
dlls/wintrust/tests/asn.c
View file @
29cae46f
...
...
@@ -147,7 +147,6 @@ static void test_decodeSPCLink(void)
ret
=
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
SPC_LINK_STRUCT
,
emptyURLSPCLink
,
sizeof
(
emptyURLSPCLink
),
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
todo_wine
ok
(
ret
,
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
...
...
@@ -160,7 +159,6 @@ static void test_decodeSPCLink(void)
ret
=
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
SPC_LINK_STRUCT
,
urlSPCLink
,
sizeof
(
urlSPCLink
),
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
todo_wine
ok
(
ret
,
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
...
...
@@ -173,7 +171,6 @@ static void test_decodeSPCLink(void)
ret
=
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
SPC_LINK_STRUCT
,
fileSPCLink
,
sizeof
(
fileSPCLink
),
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
todo_wine
ok
(
ret
,
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
...
...
@@ -186,7 +183,6 @@ static void test_decodeSPCLink(void)
ret
=
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
SPC_LINK_STRUCT
,
emptyMonikerSPCLink
,
sizeof
(
emptyMonikerSPCLink
),
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
todo_wine
ok
(
ret
,
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
...
...
@@ -195,14 +191,15 @@ static void test_decodeSPCLink(void)
link
=
(
SPC_LINK
*
)
buf
;
ok
(
link
->
dwLinkChoice
==
SPC_MONIKER_LINK_CHOICE
,
"Expected SPC_MONIKER_LINK_CHOICE, got %d
\n
"
,
link
->
dwLinkChoice
);
ok
(
!
memcmp
(
&
link
->
Moniker
,
&
emptyMoniker
,
sizeof
(
emptyMoniker
)),
"Unexpected value
\n
"
);
ok
(
!
memcmp
(
&
link
->
Moniker
.
ClassId
,
&
emptyMoniker
.
ClassId
,
sizeof
(
emptyMoniker
.
ClassId
)),
"Unexpected value
\n
"
);
ok
(
link
->
Moniker
.
SerializedData
.
cbData
==
0
,
"Expected no serialized data
\n
"
);
LocalFree
(
buf
);
}
ret
=
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
SPC_LINK_STRUCT
,
monikerSPCLink
,
sizeof
(
monikerSPCLink
),
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
todo_wine
ok
(
ret
,
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
...
...
@@ -224,7 +221,6 @@ static void test_decodeSPCLink(void)
ret
=
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
SPC_LINK_STRUCT
,
badMonikerSPCLink
,
sizeof
(
badMonikerSPCLink
),
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
(
BYTE
*
)
&
buf
,
&
size
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_BAD_ENCODE
,
"Expected CRYPT_E_BAD_ENCODE, got %08x
\n
"
,
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