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
59e3d9b5
Commit
59e3d9b5
authored
Nov 11, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Implement RpcBindingInqAuthClient{, Ex}.
parent
bdfaa846
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
110 additions
and
4 deletions
+110
-4
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+84
-0
rpcrt4.spec
dlls/rpcrt4/rpcrt4.spec
+4
-4
rpcdce.h
include/rpcdce.h
+22
-0
No files found.
dlls/rpcrt4/rpc_binding.c
View file @
59e3d9b5
...
...
@@ -1493,6 +1493,90 @@ RpcBindingInqAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, U
}
/***********************************************************************
* RpcBindingInqAuthClientA (RPCRT4.@)
*/
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcBindingInqAuthClientA
(
RPC_BINDING_HANDLE
ClientBinding
,
RPC_AUTHZ_HANDLE
*
Privs
,
RPC_CSTR
*
ServerPrincName
,
ULONG
*
AuthnLevel
,
ULONG
*
AuthnSvc
,
ULONG
*
AuthzSvc
)
{
return
RpcBindingInqAuthClientExA
(
ClientBinding
,
Privs
,
ServerPrincName
,
AuthnLevel
,
AuthnSvc
,
AuthzSvc
,
0
);
}
/***********************************************************************
* RpcBindingInqAuthClientW (RPCRT4.@)
*/
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcBindingInqAuthClientW
(
RPC_BINDING_HANDLE
ClientBinding
,
RPC_AUTHZ_HANDLE
*
Privs
,
RPC_WSTR
*
ServerPrincName
,
ULONG
*
AuthnLevel
,
ULONG
*
AuthnSvc
,
ULONG
*
AuthzSvc
)
{
return
RpcBindingInqAuthClientExW
(
ClientBinding
,
Privs
,
ServerPrincName
,
AuthnLevel
,
AuthnSvc
,
AuthzSvc
,
0
);
}
/***********************************************************************
* RpcBindingInqAuthClientExA (RPCRT4.@)
*/
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcBindingInqAuthClientExA
(
RPC_BINDING_HANDLE
ClientBinding
,
RPC_AUTHZ_HANDLE
*
Privs
,
RPC_CSTR
*
ServerPrincName
,
ULONG
*
AuthnLevel
,
ULONG
*
AuthnSvc
,
ULONG
*
AuthzSvc
,
ULONG
Flags
)
{
RPC_STATUS
status
;
RPC_WSTR
principal
;
TRACE
(
"%p %p %p %p %p %p 0x%x
\n
"
,
ClientBinding
,
Privs
,
ServerPrincName
,
AuthnLevel
,
AuthnSvc
,
AuthzSvc
,
Flags
);
status
=
RpcBindingInqAuthClientExW
(
ClientBinding
,
Privs
,
ServerPrincName
?
&
principal
:
NULL
,
AuthnLevel
,
AuthnSvc
,
AuthzSvc
,
Flags
);
if
(
status
==
RPC_S_OK
&&
ServerPrincName
)
{
*
ServerPrincName
=
(
RPC_CSTR
)
RPCRT4_strdupWtoA
(
principal
);
RpcStringFreeW
(
&
principal
);
if
(
!*
ServerPrincName
)
return
ERROR_OUTOFMEMORY
;
}
return
status
;
}
/***********************************************************************
* RpcBindingInqAuthClientExW (RPCRT4.@)
*/
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcBindingInqAuthClientExW
(
RPC_BINDING_HANDLE
ClientBinding
,
RPC_AUTHZ_HANDLE
*
Privs
,
RPC_WSTR
*
ServerPrincName
,
ULONG
*
AuthnLevel
,
ULONG
*
AuthnSvc
,
ULONG
*
AuthzSvc
,
ULONG
Flags
)
{
RpcBinding
*
bind
=
ClientBinding
;
TRACE
(
"%p %p %p %p %p %p 0x%x
\n
"
,
ClientBinding
,
Privs
,
ServerPrincName
,
AuthnLevel
,
AuthnSvc
,
AuthzSvc
,
Flags
);
if
(
!
bind
->
AuthInfo
)
return
RPC_S_BINDING_HAS_NO_AUTH
;
if
(
Privs
)
*
Privs
=
(
RPC_AUTHZ_HANDLE
)
bind
->
AuthInfo
->
identity
;
if
(
ServerPrincName
)
{
*
ServerPrincName
=
RPCRT4_strdupW
(
bind
->
AuthInfo
->
server_principal_name
);
if
(
!*
ServerPrincName
)
return
ERROR_OUTOFMEMORY
;
}
if
(
AuthnLevel
)
*
AuthnLevel
=
bind
->
AuthInfo
->
AuthnLevel
;
if
(
AuthnSvc
)
*
AuthnSvc
=
bind
->
AuthInfo
->
AuthnSvc
;
if
(
AuthzSvc
)
{
FIXME
(
"authorization service not implemented
\n
"
);
*
AuthzSvc
=
RPC_C_AUTHZ_NONE
;
}
if
(
Flags
)
FIXME
(
"flags 0x%x not implemented
\n
"
,
Flags
);
return
RPC_S_OK
;
}
/***********************************************************************
* RpcBindingSetAuthInfoExA (RPCRT4.@)
*/
RPCRTAPI
RPC_STATUS
RPC_ENTRY
...
...
dlls/rpcrt4/rpcrt4.spec
View file @
59e3d9b5
...
...
@@ -341,10 +341,10 @@
@ stdcall RpcBindingFree(ptr)
@ stdcall RpcBindingFromStringBindingA(str ptr)
@ stdcall RpcBindingFromStringBindingW(wstr ptr)
@ st
ub RpcBindingInqAuthClientA
@ st
ub RpcBindingInqAuthClientExA
@ st
ub RpcBindingInqAuthClientExW
@ st
ub RpcBindingInqAuthClientW
@ st
dcall RpcBindingInqAuthClientA(ptr ptr ptr ptr ptr ptr)
@ st
dcall RpcBindingInqAuthClientExA(ptr ptr ptr ptr ptr ptr long)
@ st
dcall RpcBindingInqAuthClientExW(ptr ptr ptr ptr ptr ptr long)
@ st
dcall RpcBindingInqAuthClientW(ptr ptr ptr ptr ptr ptr)
@ stdcall RpcBindingInqAuthInfoA(ptr ptr ptr ptr ptr ptr)
@ stdcall RpcBindingInqAuthInfoExA(ptr ptr ptr ptr ptr ptr long ptr)
@ stdcall RpcBindingInqAuthInfoExW(ptr ptr ptr ptr ptr ptr long ptr)
...
...
include/rpcdce.h
View file @
59e3d9b5
...
...
@@ -509,6 +509,28 @@ RPCRTAPI RPC_STATUS RPC_ENTRY
ULONG
*
AuthnSvc
,
RPC_AUTH_IDENTITY_HANDLE
*
AuthIdentity
,
ULONG
*
AuthzSvc
);
#define RpcBindingInqAuthInfo WINELIB_NAME_AW(RpcBindingInqAuthInfo)
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcBindingInqAuthClientA
(
RPC_BINDING_HANDLE
ClientBinding
,
RPC_AUTHZ_HANDLE
*
Privs
,
RPC_CSTR
*
ServerPrincName
,
ULONG
*
AuthnLevel
,
ULONG
*
AuthnSvc
,
ULONG
*
AuthzSvc
);
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcBindingInqAuthClientW
(
RPC_BINDING_HANDLE
ClientBinding
,
RPC_AUTHZ_HANDLE
*
Privs
,
RPC_WSTR
*
ServerPrincName
,
ULONG
*
AuthnLevel
,
ULONG
*
AuthnSvc
,
ULONG
*
AuthzSvc
);
#define RpcBindingInqAuthClient WINELIB_NAME_AW(RpcBindingInqAuthClient)
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcBindingInqAuthClientExA
(
RPC_BINDING_HANDLE
ClientBinding
,
RPC_AUTHZ_HANDLE
*
Privs
,
RPC_CSTR
*
ServerPrincName
,
ULONG
*
AuthnLevel
,
ULONG
*
AuthnSvc
,
ULONG
*
AuthzSvc
,
ULONG
Flags
);
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcBindingInqAuthClientExW
(
RPC_BINDING_HANDLE
ClientBinding
,
RPC_AUTHZ_HANDLE
*
Privs
,
RPC_WSTR
*
ServerPrincName
,
ULONG
*
AuthnLevel
,
ULONG
*
AuthnSvc
,
ULONG
*
AuthzSvc
,
ULONG
Flags
);
#define RpcBindingInqAuthClientEx WINELIB_NAME_AW(RpcBindingInqAuthClientEx)
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcCancelThread
(
void
*
);
RPCRTAPI
RPC_STATUS
RPC_ENTRY
RpcCancelThreadEx
(
void
*
,
LONG
);
...
...
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