gss: Make krb5 name attrs table-driven

The implementation of GSS name attributes for Kerberos (or any mechanism
with more than a tiny handful) is much nicer as a table-driven
implementation.

We now have stubs for setting and deleting attributes as well, though
these currently always fail.
This commit is contained in:
Nicolas Williams
2022-01-06 18:38:57 -06:00
committed by Luke Howard
parent 27d62bb27e
commit fe11481cc5
2 changed files with 778 additions and 464 deletions

View File

@@ -393,8 +393,8 @@ static gssapi_mech_interface_desc krb5_mech = {
_gsskrb5_display_name_ext, _gsskrb5_display_name_ext,
_gsskrb5_inquire_name, _gsskrb5_inquire_name,
_gsskrb5_get_name_attribute, _gsskrb5_get_name_attribute,
NULL, /* gm_set_name_attribute */ _gsskrb5_set_name_attribute,
NULL, /* gm_delete_name_attribute */ _gsskrb5_delete_name_attribute,
_gsskrb5_export_name_composite, _gsskrb5_export_name_composite,
_gsskrb5_duplicate_cred, _gsskrb5_duplicate_cred,
_gsskrb5_add_cred_from, _gsskrb5_add_cred_from,

File diff suppressed because it is too large Load Diff