summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
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
*
*/