Author: metze Date: 2004-10-08 11:29:43 +0000 (Fri, 08 Oct 2004) New Revision: 2860
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/libcli/auth&rev=2860&nolog=1 Log: add gensec_have_feature() to check what feature are used in the connection metze Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.c Changeset: Modified: branches/SAMBA_4_0/source/libcli/auth/gensec.c =================================================================== --- branches/SAMBA_4_0/source/libcli/auth/gensec.c 2004-10-08 10:16:34 UTC (rev 2859) +++ branches/SAMBA_4_0/source/libcli/auth/gensec.c 2004-10-08 11:29:43 UTC (rev 2860) @@ -471,6 +471,21 @@ } /** + * 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 * */