1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

r2860: add gensec_have_feature() to check what feature are used in the connection

metze
This commit is contained in:
Stefan Metzmacher 2004-10-08 11:29:43 +00:00 committed by Gerald (Jerry) Carter
parent 18367c4235
commit 30aa8af044

View File

@ -470,6 +470,21 @@ void gensec_want_feature(struct gensec_security *gensec_security,
gensec_security->want_features |= feature; gensec_security->want_features |= feature;
} }
/**
* 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 * Set a username on a GENSEC context - ensures it is talloc()ed
* *