mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
s4:librpc/rpc: remove unused dcerpc_fetch_session_key()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
4ccd2dd8a2
commit
d9bf23f971
@ -180,8 +180,6 @@ NTSTATUS dcerpc_pipe_open_smb2(struct dcerpc_pipe *p,
|
||||
const char *pipe_name);
|
||||
NTSTATUS dcerpc_bind_auth_none(struct dcerpc_pipe *p,
|
||||
const struct ndr_interface_table *table);
|
||||
NTSTATUS dcerpc_fetch_session_key(struct dcerpc_pipe *p,
|
||||
DATA_BLOB *session_key);
|
||||
struct composite_context;
|
||||
NTSTATUS dcerpc_secondary_connection_recv(struct composite_context *c,
|
||||
struct dcerpc_pipe **p2);
|
||||
|
@ -724,25 +724,6 @@ NTSTATUS dcecli_generic_session_key(struct dcecli_connection *c,
|
||||
return dcerpc_generic_session_key(session_key);
|
||||
}
|
||||
|
||||
/*
|
||||
fetch the user session key - may be default (above) or the SMB session key
|
||||
|
||||
The key is always truncated to 16 bytes
|
||||
*/
|
||||
_PUBLIC_ NTSTATUS dcerpc_fetch_session_key(struct dcerpc_pipe *p,
|
||||
DATA_BLOB *session_key)
|
||||
{
|
||||
NTSTATUS status;
|
||||
status = p->conn->security_state.session_key(p->conn, session_key);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return status;
|
||||
}
|
||||
|
||||
session_key->length = MIN(session_key->length, 16);
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
create a secondary context from a primary connection
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user