gensec: Refactor gensec_security_mechs()
commit426c08476704f8ac574a18562719517c6084ed3f
authorVolker Lendecke <vl@samba.org>
Tue, 28 May 2024 16:49:41 +0000 (28 18:49 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 4 Jun 2024 07:11:35 +0000 (4 07:11 +0000)
tree434954c1bcd47aa0a6910b07efbf42d52cb7c828
parentb28de27f6b880962e9183d28d76f27ce0847bd36
gensec: Refactor gensec_security_mechs()

The decision whether to offer a mechanism was split between
gensec_security_mechs() and gensec_use_kerberos_mechs() with two
booleans passed down. Consolidate that decision into one
gensec_offer_mech() function that queries all information on its own.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/gensec/gensec_start.c