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

@@ -616,6 +616,12 @@ int _gss_mo_get_option_1(gss_const_OID, gss_mo_desc *, gss_buffer_t);
int _gss_mo_get_option_0(gss_const_OID, gss_mo_desc *, gss_buffer_t);
int _gss_mo_get_ctx_as_string(gss_const_OID, gss_mo_desc *, gss_buffer_t);
struct _gss_name_type {
gss_OID gnt_name_type;
OM_uint32 (*gnt_parse)(OM_uint32 *, gss_const_OID, const gss_buffer_t,
gss_const_OID, gss_name_t *);
};
struct _gss_oid_name_table {
gss_OID oid;
const char *name;