Get rid of the global krb5 context used by the GSSAPI Kerberos mechanism. I
authorKen Raeburn <raeburn@mit.edu>
Thu, 15 Jul 2004 01:00:54 +0000 (01:00 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 15 Jul 2004 01:00:54 +0000 (01:00 +0000)
commit55f2286542acf416169bc0cc6af3d02d4f8fe686
tree7711863e9b4a15243f070649369c605836bba3b6
parent732ba2377897fde4c92a75475111ed3fe8e25bbb
Get rid of the global krb5 context used by the GSSAPI Kerberos mechanism.  I
*think* I've gotten all the places where a ccache or keytab name that's been
stored gets applied to whichever context needs it.

* gssapi_krb5.c (kg_sync_ccache_name): Add context argument instead of calling
kg_get_context.
(kg_get_ccache_name): Use a locally created krb5 context instead of calling
kg_get_context.
(kg_get_context): Deleted.
* acquire_cred.c (acquire_init_cred): Pass current context.
(krb5_gss_acquire_cred): Use a locally created krb5 context instead of calling
kg_get_context.
* add_cred.c (krb5_gss_add_cred): Call kg_sync_ccache_name.
* init_sec_context.c (krb5_gss_init_sec_context): Likewise.
* gssapiP_krb5.h (kg_sync_ccache_name): Update prototype.
(kg_get_context): Delete declaration.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16597 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/acquire_cred.c
src/lib/gssapi/krb5/add_cred.c
src/lib/gssapi/krb5/gssapiP_krb5.h
src/lib/gssapi/krb5/gssapi_krb5.c
src/lib/gssapi/krb5/init_sec_context.c