1
0
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:
Stefan Metzmacher 2024-09-14 09:55:20 +02:00 committed by Ralph Boehme
parent d9bf23f971
commit 5e34173041
2 changed files with 20 additions and 0 deletions

View File

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

View File

@ -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,