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
e27e61db
Commit
e27e61db
authored
Dec 13, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add support for server-side authentication.
parent
ceb7fda3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
8 deletions
+13
-8
rpc_assoc.c
dlls/rpcrt4/rpc_assoc.c
+3
-3
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+5
-5
rpc_binding.h
dlls/rpcrt4/rpc_binding.h
+1
-0
rpc_message.c
dlls/rpcrt4/rpc_message.c
+0
-0
rpc_message.h
dlls/rpcrt4/rpc_message.h
+4
-0
rpc_server.c
dlls/rpcrt4/rpc_server.c
+0
-0
No files found.
dlls/rpcrt4/rpc_assoc.c
View file @
e27e61db
...
...
@@ -273,9 +273,9 @@ static RPC_STATUS RpcAssoc_BindConnection(const RpcAssoc *assoc, RpcConnection *
case
RESULT_ACCEPT
:
/* respond to authorization request */
if
(
auth_length
>
sizeof
(
RpcAuthVerifier
))
status
=
RPCRT4_
AuthorizeConnection
(
conn
,
auth_data
+
sizeof
(
RpcAuthVerifier
),
auth_length
);
status
=
RPCRT4_
ClientConnectionAuth
(
conn
,
auth_data
+
sizeof
(
RpcAuthVerifier
),
auth_length
);
if
(
status
==
RPC_S_OK
)
{
conn
->
assoc_group_id
=
response_hdr
->
bind_ack
.
assoc_gid
;
...
...
dlls/rpcrt4/rpc_binding.c
View file @
e27e61db
...
...
@@ -1094,11 +1094,11 @@ static inline BOOL has_nt_auth_identity(ULONG AuthnLevel)
}
}
static
RPC_STATUS
RpcAuthInfo_Create
(
ULONG
AuthnLevel
,
ULONG
AuthnSvc
,
CredHandle
cred
,
TimeStamp
exp
,
ULONG
cbMaxToken
,
RPC_AUTH_IDENTITY_HANDLE
identity
,
RpcAuthInfo
**
ret
)
RPC_STATUS
RpcAuthInfo_Create
(
ULONG
AuthnLevel
,
ULONG
AuthnSvc
,
CredHandle
cred
,
TimeStamp
exp
,
ULONG
cbMaxToken
,
RPC_AUTH_IDENTITY_HANDLE
identity
,
RpcAuthInfo
**
ret
)
{
RpcAuthInfo
*
AuthInfo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
AuthInfo
));
if
(
!
AuthInfo
)
...
...
dlls/rpcrt4/rpc_binding.h
View file @
e27e61db
...
...
@@ -132,6 +132,7 @@ void RPCRT4_strfree(LPSTR src);
#define RPCRT4_strdupA(x) RPCRT4_strndupA((x),-1)
#define RPCRT4_strdupW(x) RPCRT4_strndupW((x),-1)
RPC_STATUS
RpcAuthInfo_Create
(
ULONG
AuthnLevel
,
ULONG
AuthnSvc
,
CredHandle
cred
,
TimeStamp
exp
,
ULONG
cbMaxToken
,
RPC_AUTH_IDENTITY_HANDLE
identity
,
RpcAuthInfo
**
ret
);
ULONG
RpcAuthInfo_AddRef
(
RpcAuthInfo
*
AuthInfo
);
ULONG
RpcAuthInfo_Release
(
RpcAuthInfo
*
AuthInfo
);
BOOL
RpcAuthInfo_IsEqual
(
const
RpcAuthInfo
*
AuthInfo1
,
const
RpcAuthInfo
*
AuthInfo2
);
...
...
dlls/rpcrt4/rpc_message.c
View file @
e27e61db
This diff is collapsed.
Click to expand it.
dlls/rpcrt4/rpc_message.h
View file @
e27e61db
...
...
@@ -35,6 +35,7 @@ RpcPktHdr *RPCRT4_BuildHttpConnectHeader(unsigned short flags, int out_pipe, con
RpcPktHdr
*
RPCRT4_BuildHttpFlowControlHeader
(
BOOL
server
,
ULONG
bytes_transmitted
,
ULONG
flow_control_increment
,
const
UUID
*
pipe_uuid
);
VOID
RPCRT4_FreeHeader
(
RpcPktHdr
*
Header
);
RPC_STATUS
RPCRT4_Send
(
RpcConnection
*
Connection
,
RpcPktHdr
*
Header
,
void
*
Buffer
,
unsigned
int
BufferLength
);
RPC_STATUS
RPCRT4_SendWithAuth
(
RpcConnection
*
Connection
,
RpcPktHdr
*
Header
,
void
*
Buffer
,
unsigned
int
BufferLength
,
const
void
*
Auth
,
unsigned
int
AuthLength
);
RPC_STATUS
RPCRT4_Receive
(
RpcConnection
*
Connection
,
RpcPktHdr
**
Header
,
PRPC_MESSAGE
pMsg
);
RPC_STATUS
RPCRT4_ReceiveWithAuth
(
RpcConnection
*
Connection
,
RpcPktHdr
**
Header
,
PRPC_MESSAGE
pMsg
,
unsigned
char
**
auth_data_out
,
ULONG
*
auth_length_out
);
DWORD
RPCRT4_GetHeaderSize
(
const
RpcPktHdr
*
Header
);
...
...
@@ -45,6 +46,9 @@ RPC_STATUS RPCRT4_ParseHttpPrepareHeader1(RpcPktHdr *header, unsigned char *data
RPC_STATUS
RPCRT4_ParseHttpPrepareHeader2
(
RpcPktHdr
*
header
,
unsigned
char
*
data
,
ULONG
*
field1
,
ULONG
*
bytes_until_next_packet
,
ULONG
*
field3
);
RPC_STATUS
RPCRT4_ParseHttpFlowControlHeader
(
RpcPktHdr
*
header
,
unsigned
char
*
data
,
BOOL
server
,
ULONG
*
bytes_transmitted
,
ULONG
*
flow_control_increment
,
UUID
*
pipe_uuid
);
NCA_STATUS
RPC2NCA_STATUS
(
RPC_STATUS
status
);
RPC_STATUS
RPCRT4_ClientConnectionAuth
(
RpcConnection
*
conn
,
BYTE
*
challenge
,
ULONG
count
);
RPC_STATUS
RPCRT4_ServerConnectionAuth
(
RpcConnection
*
conn
,
BOOL
start
,
RpcAuthVerifier
*
auth_data_in
,
ULONG
auth_length_in
,
unsigned
char
**
auth_data_out
,
ULONG
*
auth_length_out
);
RPC_STATUS
RPCRT4_AuthorizeConnection
(
RpcConnection
*
conn
,
BYTE
*
challenge
,
ULONG
count
);
RPC_STATUS
RPCRT4_ServerGetRegisteredAuthInfo
(
USHORT
auth_type
,
CredHandle
*
cred
,
TimeStamp
*
exp
,
ULONG
*
max_token
);
#endif
dlls/rpcrt4/rpc_server.c
View file @
e27e61db
This diff is collapsed.
Click to expand it.
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