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
e01420d7
Commit
e01420d7
authored
Aug 18, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Assign a unique id to the connection instead of changing it for each message.
parent
d5ecc2d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
rpc_binding.h
dlls/rpcrt4/rpc_binding.h
+1
-0
rpc_message.c
dlls/rpcrt4/rpc_message.c
+1
-2
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+2
-0
No files found.
dlls/rpcrt4/rpc_binding.h
View file @
e01420d7
...
...
@@ -67,6 +67,7 @@ typedef struct _RpcConnection
TimeStamp
exp
;
ULONG
attr
;
RpcAuthInfo
*
AuthInfo
;
ULONG
auth_context_id
;
ULONG
encryption_auth_len
;
ULONG
signature_auth_len
;
RpcQualityOfService
*
QOS
;
...
...
dlls/rpcrt4/rpc_message.c
View file @
e01420d7
...
...
@@ -813,14 +813,13 @@ static RPC_STATUS RPCRT4_SendWithAuth(RpcConnection *Connection, RpcPktHdr *Head
if
(
Connection
->
AuthInfo
&&
packet_has_auth_verifier
(
Header
))
{
RpcAuthVerifier
*
auth_hdr
=
(
RpcAuthVerifier
*
)
&
pkt
[
Header
->
common
.
frag_len
-
alen
];
static
LONG
next_id
;
auth_hdr
->
auth_type
=
Connection
->
AuthInfo
->
AuthnSvc
;
auth_hdr
->
auth_level
=
Connection
->
AuthInfo
->
AuthnLevel
;
auth_hdr
->
auth_pad_length
=
auth_pad_len
;
auth_hdr
->
auth_reserved
=
0
;
/* a unique number... */
auth_hdr
->
auth_context_id
=
InterlockedIncrement
(
&
next_id
)
;
auth_hdr
->
auth_context_id
=
Connection
->
auth_context_id
;
if
(
AuthLength
)
memcpy
(
auth_hdr
+
1
,
Auth
,
AuthLength
);
...
...
dlls/rpcrt4/rpc_transport.c
View file @
e01420d7
...
...
@@ -2800,6 +2800,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server,
LPCSTR
Protseq
,
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCWSTR
NetworkOptions
,
RpcAuthInfo
*
AuthInfo
,
RpcQualityOfService
*
QOS
)
{
static
LONG
next_id
;
const
struct
connection_ops
*
ops
;
RpcConnection
*
NewConnection
;
...
...
@@ -2827,6 +2828,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server,
NewConnection
->
attr
=
0
;
if
(
AuthInfo
)
RpcAuthInfo_AddRef
(
AuthInfo
);
NewConnection
->
AuthInfo
=
AuthInfo
;
NewConnection
->
auth_context_id
=
InterlockedIncrement
(
&
next_id
);
NewConnection
->
encryption_auth_len
=
0
;
NewConnection
->
signature_auth_len
=
0
;
if
(
QOS
)
RpcQualityOfService_AddRef
(
QOS
);
...
...
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