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);
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