libcli/smb: use the same values for SMB_SIGNING_* as the source3 code uses
authorStefan Metzmacher <metze@samba.org>
Wed, 2 Nov 2011 17:21:49 +0000 (18:21 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 3 Nov 2011 15:55:12 +0000 (16:55 +0100)
The source3 code currently uses:
 #define Undefined (-1)
 #define False false
 #define True true
 #define Required (3)

In order to make the rewrite easier we should match the values.

metze

libcli/smb/smb_constants.h

index cd5e77bf7898271007c685cbc65f0dfa008ecfb9..7c4620aa43c6c58baee2946641f2b3f7e6cf578c 100644 (file)
@@ -88,10 +88,10 @@ enum protocol_types {
 };
 
 enum smb_signing_setting {
-       SMB_SIGNING_DEFAULT,
-       SMB_SIGNING_OFF,
-       SMB_SIGNING_IF_REQUIRED,
-       SMB_SIGNING_REQUIRED,
+       SMB_SIGNING_DEFAULT = -1,
+       SMB_SIGNING_OFF = 0,
+       SMB_SIGNING_IF_REQUIRED = 1,
+       SMB_SIGNING_REQUIRED = 3,
 };
 
 /* types of buffers in core SMB protocol */