summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-12-21 12:39:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:35 -0500
commit72249717272819d9fb73d4a67a4c546db4ac3f2c (patch)
tree5e5af536edb1c6709f84095583cd593eff8444e8 /source4/libcli
parente0cac67fd494acaacdddc6c9a7ebe5bb5929472b (diff)
downloadsamba-72249717272819d9fb73d4a67a4c546db4ac3f2c.tar.gz
samba-72249717272819d9fb73d4a67a4c546db4ac3f2c.tar.bz2
samba-72249717272819d9fb73d4a67a4c546db4ac3f2c.zip
r4325: add the GENSEC_FEATURE_DCE_STYLE flag
this will be used by krb5 dcerpc auth metze (This used to be commit 04dc7fb9b24a1e38f31559ec6032701a176209ae)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/auth/gensec.c1
-rw-r--r--source4/libcli/auth/gensec.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c
index 147d1b12df..8009df4e40 100644
--- a/source4/libcli/auth/gensec.c
+++ b/source4/libcli/auth/gensec.c
@@ -232,6 +232,7 @@ NTSTATUS gensec_start_mech_by_authtype(struct gensec_security *gensec_security,
DEBUG(3, ("Could not find GENSEC backend for auth_type=%d\n", (int)auth_type));
return NT_STATUS_INVALID_PARAMETER;
}
+ gensec_want_feature(gensec_security, GENSEC_FEATURE_DCE_STYLE);
if (auth_level == DCERPC_AUTH_LEVEL_INTEGRITY) {
gensec_want_feature(gensec_security, GENSEC_FEATURE_SIGN);
}
diff --git a/source4/libcli/auth/gensec.h b/source4/libcli/auth/gensec.h
index 3d645bee82..9162c935b2 100644
--- a/source4/libcli/auth/gensec.h
+++ b/source4/libcli/auth/gensec.h
@@ -44,6 +44,7 @@ struct gensec_target {
#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