From 969ab12c56cd12dcc0e63e9b662397c1604a0cc0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 12 Jun 2017 17:58:46 +0200 Subject: idl_types.h: add NDR_SECRET shortcut BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782 Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- librpc/idl/idl_types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'librpc') diff --git a/librpc/idl/idl_types.h b/librpc/idl/idl_types.h index 72a5d857852..2d063de0bc7 100644 --- a/librpc/idl/idl_types.h +++ b/librpc/idl/idl_types.h @@ -52,6 +52,12 @@ */ #define NDR_PAHEX LIBNDR_PRINT_ARRAY_HEX +/* + * Mark an element as SECRET, it won't be printed by + * via ndr_print* unless NDR_PRINT_SECRETS is specified. + */ +#define NDR_SECRET LIBNDR_FLAG_IS_SECRET + #define NDR_RELATIVE_REVERSE LIBNDR_FLAG_RELATIVE_REVERSE #define NDR_NO_RELATIVE_REVERSE LIBNDR_FLAG_NO_RELATIVE_REVERSE -- cgit v1.2.1