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:
parent
18367c4235
commit
30aa8af044
@ -470,6 +470,21 @@ void gensec_want_feature(struct gensec_security *gensec_security,
|
||||
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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user