1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +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:
Günther Deschner 2016-08-30 15:44:40 +02:00 committed by Andreas Schneider
parent 1a46ff2a0f
commit 6f642eb306
2 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,7 @@ static const struct ncacn_option {
{"bigendian", DCERPC_PUSH_BIGENDIAN}, {"bigendian", DCERPC_PUSH_BIGENDIAN},
{"smb2", DCERPC_SMB2}, {"smb2", DCERPC_SMB2},
{"ndr64", DCERPC_NDR64}, {"ndr64", DCERPC_NDR64},
{"packet", DCERPC_PACKET},
}; };
static const struct ncacn_option *ncacn_option_by_name(const char *name) 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; auth_level = DCERPC_AUTH_LEVEL_INTEGRITY;
} else if (b->flags & DCERPC_CONNECT) { } else if (b->flags & DCERPC_CONNECT) {
auth_level = DCERPC_AUTH_LEVEL_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) { } else if (auth_type != DCERPC_AUTH_TYPE_NONE) {
auth_level = DCERPC_AUTH_LEVEL_INTEGRITY; auth_level = DCERPC_AUTH_LEVEL_INTEGRITY;
} else { } else {

View File

@ -106,6 +106,8 @@ struct dcerpc_binding;
/* this triggers the DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN flag in the bind request */ /* this triggers the DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN flag in the bind request */
#define DCERPC_PROPOSE_HEADER_SIGNING (1<<25) #define DCERPC_PROPOSE_HEADER_SIGNING (1<<25)
#define DCERPC_PACKET (1<<26)
/* The following definitions come from ../librpc/rpc/dcerpc_error.c */ /* The following definitions come from ../librpc/rpc/dcerpc_error.c */
const char *dcerpc_errstr(TALLOC_CTX *mem_ctx, uint32_t fault_code); const char *dcerpc_errstr(TALLOC_CTX *mem_ctx, uint32_t fault_code);