gss: merge Apple name helper APIs

Add helper APIs to the mechanism glue from the Apple implementation.
gss_mg_export_name() can be used by a mechanism to create an exported name
(this is used by the future SAnon implementation). _gss_mech_import_name()
allows the mechanism to pass in a list of parsing functions for specific name
tiypes. This commit only adds support to the mechanism glue itself.
This commit is contained in:
Luke Howard
2019-12-28 16:34:35 +11:00
parent 6af3ea9099
commit 8478dd1c88
6 changed files with 205 additions and 0 deletions

View File

@@ -173,6 +173,8 @@ gss_init_sec_context(OM_uint32 * minor_status,
if (time_rec)
*time_rec = 0;
_gss_mg_check_name(target_name);
if (_gss_mg_log_level(1))
log_init_sec_context(ctx, name, req_flags,
(struct _gss_cred *)initiator_cred_handle,