mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
librpc/rpc: add dcerpc_binding_handle_auth_session_key()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
d9bf23f971
commit
5e34173041
@ -144,6 +144,18 @@ void dcerpc_binding_handle_auth_info(struct dcerpc_binding_handle *h,
|
||||
h->ops->auth_info(h, auth_type, auth_level);
|
||||
}
|
||||
|
||||
NTSTATUS dcerpc_binding_handle_auth_session_key(
|
||||
struct dcerpc_binding_handle *h,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
DATA_BLOB *session_key)
|
||||
{
|
||||
if (h->ops->auth_session_key == NULL) {
|
||||
return NT_STATUS_NO_USER_SESSION_KEY;
|
||||
}
|
||||
|
||||
return h->ops->auth_session_key(h, mem_ctx, session_key);
|
||||
}
|
||||
|
||||
struct dcerpc_binding_handle_raw_call_state {
|
||||
const struct dcerpc_binding_handle_ops *ops;
|
||||
uint8_t *out_data;
|
||||
|
@ -184,6 +184,9 @@ struct dcerpc_binding_handle_ops {
|
||||
void (*auth_info)(struct dcerpc_binding_handle *h,
|
||||
enum dcerpc_AuthType *auth_type,
|
||||
enum dcerpc_AuthLevel *auth_level);
|
||||
NTSTATUS (*auth_session_key)(struct dcerpc_binding_handle *h,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
DATA_BLOB *session_key);
|
||||
|
||||
struct tevent_req *(*raw_call_send)(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
@ -266,6 +269,11 @@ void dcerpc_binding_handle_auth_info(struct dcerpc_binding_handle *h,
|
||||
enum dcerpc_AuthType *auth_type,
|
||||
enum dcerpc_AuthLevel *auth_level);
|
||||
|
||||
NTSTATUS dcerpc_binding_handle_auth_session_key(
|
||||
struct dcerpc_binding_handle *h,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
DATA_BLOB *session_key);
|
||||
|
||||
struct tevent_req *dcerpc_binding_handle_raw_call_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
struct dcerpc_binding_handle *h,
|
||||
|
Loading…
Reference in New Issue
Block a user