librpc/rpc: add DCERPC_AUTH_PAD_LENGTH(stub_length) helper macro
authorStefan Metzmacher <metze@samba.org>
Sat, 20 Jun 2015 15:43:47 +0000 (17:43 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Jun 2015 12:38:53 +0000 (14:38 +0200)
commitf1e3ad269ca8f76876afd8e3837c9c9b48688941
tree228286417970a6823a711d9fddee1cab112b2428
parent2cb3ec5856ab5b7edad8ffd67a5d0f927c161138
librpc/rpc: add DCERPC_AUTH_PAD_LENGTH(stub_length) helper macro

This calculates the required padding DCERPC_AUTH_PAD_ALIGNMENT
and the stub_length.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11061

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/rpc/rpc_common.h