summaryrefslogtreecommitdiff
path: root/librpc/rpc/rpc_common.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-06-26 08:10:46 +0200
committerStefan Metzmacher <metze@samba.org>2016-04-12 19:25:29 +0200
commit0fa8378fc51a030efc9a6bf566681b1a398d8acc (patch)
tree21bad21cadc6c156fddb0abec1b07e0e6eac90c1 /librpc/rpc/rpc_common.h
parentcdba091867061a9ed805f02a170938fa7de85e7e (diff)
downloadsamba-0fa8378fc51a030efc9a6bf566681b1a398d8acc.tar.gz
CVE-2015-5370: librpc/rpc: add a dcerpc_verify_ncacn_packet_header() helper function
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11344 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'librpc/rpc/rpc_common.h')
-rw-r--r--librpc/rpc/rpc_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/librpc/rpc/rpc_common.h b/librpc/rpc/rpc_common.h
index f6434e7613d..bd0985ad6a9 100644
--- a/librpc/rpc/rpc_common.h
+++ b/librpc/rpc/rpc_common.h
@@ -193,6 +193,11 @@ NTSTATUS dcerpc_pull_auth_trailer(const struct ncacn_packet *pkt,
struct dcerpc_auth *auth,
uint32_t *auth_length,
bool auth_data_only);
+NTSTATUS dcerpc_verify_ncacn_packet_header(const struct ncacn_packet *pkt,
+ enum dcerpc_pkt_type ptype,
+ size_t max_auth_info,
+ uint8_t required_flags,
+ uint8_t optional_flags);
struct tevent_req *dcerpc_read_ncacn_packet_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct tstream_context *stream);