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>
Tue, 27 Jun 2017 14:57:43 +0000 (16:57 +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>
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