summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-10-08 11:29:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:39 -0500
commit4228ef28153fb985d9d2097832fe628327623044 (patch)
tree441583b6a076880db75f94514d4f152ac3e031fc /source4/libcli
parent59ef8de1293e171e740e4aa9b9d16271859191d2 (diff)
downloadsamba-4228ef28153fb985d9d2097832fe628327623044.tar.gz
samba-4228ef28153fb985d9d2097832fe628327623044.tar.bz2
samba-4228ef28153fb985d9d2097832fe628327623044.zip
r2860: add gensec_have_feature() to check what feature are used in the connection
metze (This used to be commit 30aa8af04498d674dbcf428a9e62df9055f53ea2)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/auth/gensec.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c
index 5d8e3bbca4..353c5f562d 100644
--- a/source4/libcli/auth/gensec.c
+++ b/source4/libcli/auth/gensec.c
@@ -471,6 +471,21 @@ void gensec_want_feature(struct gensec_security *gensec_security,
}
/**
+ * Check the requirement for a certain feature on the connection
+ *
+ */
+
+BOOL gensec_have_feature(struct gensec_security *gensec_security,
+ uint32 feature)
+{
+ if (gensec_security->want_features & feature) {
+ return True;
+ }
+
+ return False;
+}
+
+/**
* Set a username on a GENSEC context - ensures it is talloc()ed
*
*/