librpc/rpc: add DCERPC_AUTH_PAD_LENGTH(stub_length) helper macro
commit50d702923ce24c94cb5afbca960d0610d9711bab
authorStefan Metzmacher <metze@samba.org>
Sat, 20 Jun 2015 15:43:47 +0000 (20 17:43 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 5 Jul 2015 19:30:16 +0000 (5 21:30 +0200)
tree5965fbfdc44a0f6521440af551a3612acdf95881
parent346735647b913449221cd1a4ebc84fadaf67b5d3
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>
(cherry picked from commit f1e3ad269ca8f76876afd8e3837c9c9b48688941)
librpc/rpc/rpc_common.h