Allow krb5_gss_register_acceptor_identity to unset keytab name
authorGreg Hudson <ghudson@mit.edu>
Thu, 19 Aug 2010 16:38:30 +0000 (16:38 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 19 Aug 2010 16:38:30 +0000 (16:38 +0000)
commit41103fb180d78f349a5c3fe45f96008b50a11587
treeb7ff6041575a9e7ef2b40d7bb65a33a55043ff50
parent06bdc5c1cd257e7e85d8d29833ca54dd55b3a4f2
Allow krb5_gss_register_acceptor_identity to unset keytab name

krb5_gss_register_acceptor_identity sets a mutex-locked global (not
thread-specific) variable containing a keytab name.  This change
allows the variable to be unset by passing a null value.

A more elegant long-term solution to the problem is Heimdal's
gss_krb5_import_cred function.

ticket: 6758

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24242 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/krb5/acquire_cred.c
src/lib/gssapi/krb5/krb5_gss_glue.c