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
03aae9e4
Commit
03aae9e4
authored
Nov 12, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add tests for RpcBindingInqAuthInfo.
parent
8abe95dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
rpc.c
dlls/rpcrt4/tests/rpc.c
+27
-1
No files found.
dlls/rpcrt4/tests/rpc.c
View file @
03aae9e4
...
...
@@ -208,12 +208,15 @@ static RPC_IF_HANDLE IFoo_v0_0_s_ifspec = (RPC_IF_HANDLE)& IFoo___RpcServerInter
static
void
test_rpc_ncacn_ip_tcp
(
void
)
{
RPC_STATUS
status
;
unsigned
char
*
binding
;
unsigned
char
*
binding
,
*
principal
;
handle_t
IFoo_IfHandle
;
ULONG
level
,
authnsvc
,
authzsvc
;
RPC_AUTH_IDENTITY_HANDLE
identity
;
static
unsigned
char
foo
[]
=
"foo"
;
static
unsigned
char
ncacn_ip_tcp
[]
=
"ncacn_ip_tcp"
;
static
unsigned
char
address
[]
=
"127.0.0.1"
;
static
unsigned
char
endpoint
[]
=
"4114"
;
static
unsigned
char
spn
[]
=
"principal"
;
status
=
RpcNetworkIsProtseqValid
(
foo
);
ok
(
status
==
RPC_S_INVALID_RPC_PROTSEQ
,
"return wrong
\n
"
);
...
...
@@ -265,6 +268,29 @@ todo_wine {
ok
(
status
==
RPC_S_OK
||
broken
(
status
==
RPC_S_UNKNOWN_AUTHN_SERVICE
),
/* win9x */
"RpcBindingSetAuthInfo failed (%u)
\n
"
,
status
);
status
=
RpcBindingInqAuthInfo
(
IFoo_IfHandle
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
status
==
RPC_S_BINDING_HAS_NO_AUTH
,
"RpcBindingInqAuthInfo failed (%u)
\n
"
,
status
);
status
=
RpcBindingSetAuthInfo
(
IFoo_IfHandle
,
spn
,
RPC_C_AUTHN_LEVEL_PKT_PRIVACY
,
RPC_C_AUTHN_WINNT
,
NULL
,
RPC_C_AUTHZ_NAME
);
ok
(
status
==
RPC_S_OK
,
"RpcBindingSetAuthInfo failed (%u)
\n
"
,
status
);
level
=
authnsvc
=
authzsvc
=
0
;
principal
=
(
unsigned
char
*
)
0xdeadbeef
;
identity
=
(
RPC_AUTH_IDENTITY_HANDLE
*
)
0xdeadbeef
;
status
=
RpcBindingInqAuthInfo
(
IFoo_IfHandle
,
&
principal
,
&
level
,
&
authnsvc
,
&
identity
,
&
authzsvc
);
ok
(
status
==
RPC_S_OK
,
"RpcBindingInqAuthInfo failed (%u)
\n
"
,
status
);
ok
(
identity
==
NULL
,
"expected NULL identity
\n
"
);
ok
(
principal
!=
(
unsigned
char
*
)
0xdeadbeef
,
"expected valid principal
\n
"
);
ok
(
level
==
RPC_C_AUTHN_LEVEL_PKT_PRIVACY
,
"expected RPC_C_AUTHN_LEVEL_PKT_PRIVACY
\n
"
);
ok
(
authnsvc
==
RPC_C_AUTHN_WINNT
,
"expected RPC_C_AUTHN_WINNT
\n
"
);
todo_wine
ok
(
authzsvc
==
RPC_C_AUTHZ_NAME
,
"expected RPC_C_AUTHZ_NAME
\n
"
);
RpcStringFree
(
&
principal
);
status
=
RpcMgmtStopServerListening
(
NULL
);
ok
(
status
==
RPC_S_OK
,
"RpcMgmtStopServerListening failed (%u)
\n
"
,
status
);
...
...
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