diff options
author | Samuel Cabrero <scabrero@suse.de> | 2019-01-23 20:52:50 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-10-18 16:07:36 +0000 |
commit | 83def9a945f40892aaf0e4ea6ea7845d74bbaf7c (patch) | |
tree | a6c8a21d7a8b8d464d7d03335ce2f573fd086267 /librpc | |
parent | f402b937f4862843015686b8e28504fe588d0c5f (diff) | |
download | samba-83def9a945f40892aaf0e4ea6ea7845d74bbaf7c.tar.gz |
s4:rpc_server: Split dcerpc_generic_session_key for server and client
Split the common bits of dcerpc_generic_session_key to librpc and rename
client the specific part to dcecli_generic_session_key.
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/rpc/dcerpc_util.c | 10 | ||||
-rw-r--r-- | librpc/rpc/rpc_common.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/librpc/rpc/dcerpc_util.c b/librpc/rpc/dcerpc_util.c index 6bc97f7e7d8..103a24e9284 100644 --- a/librpc/rpc/dcerpc_util.c +++ b/librpc/rpc/dcerpc_util.c @@ -1340,3 +1340,13 @@ struct ndr_syntax_id dcerpc_construct_bind_time_features(uint64_t features) return s; } + +NTSTATUS dcerpc_generic_session_key(DATA_BLOB *session_key) +{ + *session_key = data_blob_null; + + /* this took quite a few CPU cycles to find ... */ + session_key->data = discard_const_p(unsigned char, "SystemLibraryDTC"); + session_key->length = 16; + return NT_STATUS_OK; +} diff --git a/librpc/rpc/rpc_common.h b/librpc/rpc/rpc_common.h index f1535d74220..e109dfee4d6 100644 --- a/librpc/rpc/rpc_common.h +++ b/librpc/rpc/rpc_common.h @@ -445,4 +445,6 @@ struct ndr_syntax_id dcerpc_construct_bind_time_features(uint64_t features); (DCERPC_AUTH_PAD_ALIGNMENT - (stub_length) % DCERPC_AUTH_PAD_ALIGNMENT):\ 0) +NTSTATUS dcerpc_generic_session_key(DATA_BLOB *session_key); + #endif /* __DEFAULT_LIBRPC_RPCCOMMON_H__ */ |