g_mechname.c (gss_add_mech_name_type): Only mark a name-type as being
authorTheodore Tso <tytso@mit.edu>
Sat, 24 Feb 1996 23:45:13 +0000 (23:45 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 24 Feb 1996 23:45:13 +0000 (23:45 +0000)
commitc981c53a4ce52a576c2e1d51a60a9fbccb60030f
treef75dbaee7978d42b5ec1a25bf81d8126de70079a
parentccad1d550df6a675d689a63186328d5fd0b8f9cd
g_mechname.c (gss_add_mech_name_type): Only mark a name-type as being
non-mechanism-specific if the mechanism doesn't match the type
currently associated with the name-type.

g_init_sec_context.c (gss_init_security_context): If we are using a
mechanism-specific name, use the mechanism-specific name directly,
instead of calling __gss_internal_import() on the external form of the
name.  If the mechanism_type is unspecified, use the type of the
mechanism-specific name.  If the mechanism_type is specified, it must
match the type of the supplied name.

g_acquire_cred.c (gss_acquire_cred): If we are acquiring credentials
for a mechanism-specific name, use the name directly, instead of doing
an __gss_internal_import() on the name.  Also, if the
desired_mechanisms oid is NULL, default to using the mechanism-type of
the mechanism-specific name.

g_compare_name.c (gss_compare_name): Add logic for comparing
mechanism-specific names.

g_accept_sec_context.c (gss_accept_sec_context): Use
__gss_convert_name_to_union_name() to take the gss_name_t returned by
the mechanism accept_sec_context(), and convert it into a
mechanism-specific union name.

g_inquire_context.c (gss_inquire_context): Removed local static
function convert_name_to_union_name(), and changed references to it
use the generalized __gss_convert_name_to_union_name() call.

g_glue.c (__gss_convert_name_to_union_name): New function which takes
gss_name_t returned by a particular mechanism, and converts it into a
gss_union_name.

g_rel_oid_set.c (gss_release_oid_set): Manually free the oids in an
OID set, since the containing structure is allocated as an array.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7523 dc483132-0cff-0310-8789-dd5450dbe970
13 files changed:
src/lib/gssapi/mechglue/ChangeLog
src/lib/gssapi/mechglue/g_accept_sec_context.c
src/lib/gssapi/mechglue/g_acquire_cred.c
src/lib/gssapi/mechglue/g_compare_name.c
src/lib/gssapi/mechglue/g_glue.c
src/lib/gssapi/mechglue/g_imp_name.c
src/lib/gssapi/mechglue/g_init_sec_context.c
src/lib/gssapi/mechglue/g_initialize.c
src/lib/gssapi/mechglue/g_inquire_context.c
src/lib/gssapi/mechglue/g_mechname.c [new file with mode: 0644]
src/lib/gssapi/mechglue/g_rel_name.c
src/lib/gssapi/mechglue/g_rel_oid_set.c
src/lib/gssapi/mechglue/mglueP.h