r4325: add the GENSEC_FEATURE_DCE_STYLE flag
[samba.git] / source4 / libcli / auth / gensec.h
index f8b7e292e8442ef3ae5925634da311f5e9c6fc68..9162c935b283bd1212b69f33bf9a0a8a081bd0a1 100644 (file)
@@ -41,9 +41,10 @@ struct gensec_target {
        const char *service;
 };
 
-#define GENSEC_WANT_SESSION_KEY 0x1
-#define GENSEC_WANT_SIGN 0x2
-#define GENSEC_WANT_SEAL 0x4
+#define GENSEC_FEATURE_SESSION_KEY     0x00000001
+#define GENSEC_FEATURE_SIGN            0x00000002
+#define GENSEC_FEATURE_SEAL            0x00000004
+#define GENSEC_FEATURE_DCE_STYLE       0x00000008
 
 /* GENSEC mode */
 enum gensec_role
@@ -99,6 +100,7 @@ struct gensec_security {
        enum gensec_role gensec_role;
        BOOL subcontext;
        uint32 want_features;
+       uint32 have_features;
 };
 
 /* this structure is used by backends to determine the size of some critical types */