mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
librpc: support "packet" for packet level authentication in binding strings
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
1a46ff2a0f
commit
6f642eb306
@ -105,6 +105,7 @@ static const struct ncacn_option {
|
||||
{"bigendian", DCERPC_PUSH_BIGENDIAN},
|
||||
{"smb2", DCERPC_SMB2},
|
||||
{"ndr64", DCERPC_NDR64},
|
||||
{"packet", DCERPC_PACKET},
|
||||
};
|
||||
|
||||
static const struct ncacn_option *ncacn_option_by_name(const char *name)
|
||||
@ -590,6 +591,8 @@ _PUBLIC_ void dcerpc_binding_get_auth_info(const struct dcerpc_binding *b,
|
||||
auth_level = DCERPC_AUTH_LEVEL_INTEGRITY;
|
||||
} else if (b->flags & DCERPC_CONNECT) {
|
||||
auth_level = DCERPC_AUTH_LEVEL_CONNECT;
|
||||
} else if (b->flags & DCERPC_PACKET) {
|
||||
auth_level = DCERPC_AUTH_LEVEL_PACKET;
|
||||
} else if (auth_type != DCERPC_AUTH_TYPE_NONE) {
|
||||
auth_level = DCERPC_AUTH_LEVEL_INTEGRITY;
|
||||
} else {
|
||||
|
@ -106,6 +106,8 @@ struct dcerpc_binding;
|
||||
/* this triggers the DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN flag in the bind request */
|
||||
#define DCERPC_PROPOSE_HEADER_SIGNING (1<<25)
|
||||
|
||||
#define DCERPC_PACKET (1<<26)
|
||||
|
||||
/* The following definitions come from ../librpc/rpc/dcerpc_error.c */
|
||||
|
||||
const char *dcerpc_errstr(TALLOC_CTX *mem_ctx, uint32_t fault_code);
|
||||
|
Loading…
Reference in New Issue
Block a user