diff options
author | Andrew Bartlett <abartlet@samba.org> | 2023-03-28 18:35:10 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2023-03-31 01:48:30 +0000 |
commit | 8c58da347c22eaceb95a3c4009bcdbccfd88fce0 (patch) | |
tree | 30b7765ea07fd7fe7747f9e2460608c266303317 /librpc | |
parent | 937bf4b8365d6f99c34d83d11975d43d41ba5790 (diff) | |
download | samba-8c58da347c22eaceb95a3c4009bcdbccfd88fce0.tar.gz |
libndr/ndr: Add NDR_COMPRESSION_INVALID
This will help make a mapping from wire-specified compression
algorithms to our available choices safer by allowing an invalid
choice to map to NDR_COMPRESSION_INVALID
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/libndr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index 65b111d532c..bd3ef958744 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -294,6 +294,7 @@ enum ndr_compression_alg { NDR_COMPRESSION_MSZIP = 2, NDR_COMPRESSION_XPRESS = 3, NDR_COMPRESSION_WIN2K3_LZ77_DIRECT2 = 4, /* Unimplemented */ + NDR_COMPRESSION_INVALID = 255, }; /* |