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
ae2c086e
Commit
ae2c086e
authored
Feb 13, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Feb 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Fix a few failing tests.
parent
dd75176d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
softpub.c
dlls/wintrust/tests/softpub.c
+17
-8
No files found.
dlls/wintrust/tests/softpub.c
View file @
ae2c086e
...
@@ -303,12 +303,20 @@ static void testObjTrust(SAFE_PROVIDER_FUNCTIONS *funcs, GUID *actionID)
...
@@ -303,12 +303,20 @@ static void testObjTrust(SAFE_PROVIDER_FUNCTIONS *funcs, GUID *actionID)
ret
=
funcs
->
pfnObjectTrust
(
&
data
);
ret
=
funcs
->
pfnObjectTrust
(
&
data
);
ok
(
ret
==
S_FALSE
,
"Expected S_FALSE, got %08x
\n
"
,
ret
);
ok
(
ret
==
S_FALSE
,
"Expected S_FALSE, got %08x
\n
"
,
ret
);
ok
(
data
.
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]
==
ok
(
data
.
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]
==
TRUST_E_NOSIGNATURE
,
"Expected TRUST_E_NOSIGNATURE, got %08x
\n
"
,
TRUST_E_NOSIGNATURE
||
data
.
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]
==
TRUST_E_SUBJECT_FORM_UNKNOWN
,
"Expected TRUST_E_NOSIGNATURE or TRUST_E_SUBJECT_FORM_UNKNOWN, got %08x
\n
"
,
data
.
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]);
data
.
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]);
ok
(
!
memcmp
(
&
provDataSIP
.
gSubject
,
&
unknown
,
sizeof
(
unknown
)),
if
(
data
.
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]
==
"Unexpected subject GUID
\n
"
);
TRUST_E_NOSIGNATURE
)
ok
(
provDataSIP
.
pSip
!=
NULL
,
"Expected a SIP
\n
"
);
{
ok
(
provDataSIP
.
psSipSubjectInfo
!=
NULL
,
"Expected a subject info
\n
"
);
ok
(
!
memcmp
(
&
provDataSIP
.
gSubject
,
&
unknown
,
sizeof
(
unknown
)),
"Unexpected subject GUID
\n
"
);
ok
(
provDataSIP
.
pSip
!=
NULL
,
"Expected a SIP
\n
"
);
ok
(
provDataSIP
.
psSipSubjectInfo
!=
NULL
,
"Expected a subject info
\n
"
);
}
funcs
->
pfnFree
(
data
.
padwTrustStepErrors
);
funcs
->
pfnFree
(
data
.
padwTrustStepErrors
);
}
}
}
}
...
@@ -444,10 +452,11 @@ static void test_wintrust(void)
...
@@ -444,10 +452,11 @@ static void test_wintrust(void)
getNotepadPath
(
notepadPathW
,
MAX_PATH
);
getNotepadPath
(
notepadPathW
,
MAX_PATH
);
file
.
pcwszFilePath
=
notepadPathW
;
file
.
pcwszFilePath
=
notepadPathW
;
r
=
WinVerifyTrust
(
INVALID_HANDLE_VALUE
,
&
generic_action_v2
,
&
wtd
);
r
=
WinVerifyTrust
(
INVALID_HANDLE_VALUE
,
&
generic_action_v2
,
&
wtd
);
ok
(
r
==
TRUST_E_NOSIGNATURE
,
"expected TRUST_E_NOSIGNATURE, got %08x
\n
"
,
r
);
ok
(
r
==
TRUST_E_NOSIGNATURE
||
r
==
CRYPT_E_FILE_ERROR
,
"expected TRUST_E_NOSIGNATURE or CRYPT_E_FILE_ERROR, got %08x
\n
"
,
r
);
hr
=
WinVerifyTrustEx
(
INVALID_HANDLE_VALUE
,
&
generic_action_v2
,
&
wtd
);
hr
=
WinVerifyTrustEx
(
INVALID_HANDLE_VALUE
,
&
generic_action_v2
,
&
wtd
);
ok
(
hr
==
TRUST_E_NOSIGNATURE
,
"expected TRUST_E_NOSIGNATURE, got %08x
\n
"
,
ok
(
hr
==
TRUST_E_NOSIGNATURE
||
r
==
CRYPT_E_FILE_ERROR
,
hr
);
"expected TRUST_E_NOSIGNATURE or CRYPT_E_FILE_ERROR, got %08x
\n
"
,
hr
);
}
}
static
BOOL
(
WINAPI
*
pWTHelperGetKnownUsages
)(
DWORD
action
,
PCCRYPT_OID_INFO
**
usages
);
static
BOOL
(
WINAPI
*
pWTHelperGetKnownUsages
)(
DWORD
action
,
PCCRYPT_OID_INFO
**
usages
);
...
...
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