]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
idl_types.h: add NDR_SECRET shortcut
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Jun 2017 15:58:46 +0000 (17:58 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 13 Jul 2017 08:51:17 +0000 (10:51 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 969ab12c56cd12dcc0e63e9b662397c1604a0cc0)

librpc/idl/idl_types.h

index 72a5d857852f22a4ab3e6840ec9e5e34b343a7dd..2d063de0bc73a74cf97a6b978f8464045b781278 100644 (file)
 */
 #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