diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-06-02 22:35:33 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-06-02 22:35:33 +0000 |
commit | bd4f6556f5120202c73fb87643f3112fca043991 (patch) | |
tree | a24906ba860114345cb44e85df3bb7bc19b95f40 /src/lib/krb5/krb | |
parent | 7fd7d7274639da4c78790ebb9b737213d2109703 (diff) | |
download | krb5-bd4f6556f5120202c73fb87643f3112fca043991.tar.gz krb5-bd4f6556f5120202c73fb87643f3112fca043991.tar.xz krb5-bd4f6556f5120202c73fb87643f3112fca043991.zip |
Add/remove error tables in library initialization/termination, not per context.
Use only one library initialization scheme, and install the error tables in
only one place.
* krb5_libinit.c (initialized): Variable deleted, all references removed.
(krb5int_lib_init): Initialize error tables here.
(krb5int_initialize_library): Don't do it here.
* error_tables/Makefile.in (STLIBOBJS, OBJS, SRCS): Drop init_ets code.
* krb/init_ctx.c (init_common): Don't call krb5_init_ets.
(krb5_free_context): Don't call krb5_free_ets.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16388 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb')
-rw-r--r-- | src/lib/krb5/krb/ChangeLog | 3 | ||||
-rw-r--r-- | src/lib/krb5/krb/init_ctx.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 9b360d777..83e4b1ddf 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,5 +1,8 @@ 2004-06-02 Ken Raeburn <raeburn@mit.edu> + * init_ctx.c (init_common): Don't call krb5_init_ets. + (krb5_free_context): Don't call krb5_free_ets. + * srv_rcache.c (krb5_get_server_rcache): Use krb5_rc_resolve_full instead of constructing an rcache object locally. diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index de6b22d50..c3f66105b 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -109,8 +109,9 @@ init_common (krb5_context *context, krb5_boolean secure) krb5_data seed; int tmp; - /* Initialize error tables */ - krb5_init_ets(ctx); + retval = krb5int_initialize_library(); + if (retval) + return retval; #if (defined(_WIN32)) /* @@ -238,7 +239,6 @@ cleanup: void KRB5_CALLCONV krb5_free_context(krb5_context ctx) { - krb5_free_ets(ctx); krb5_os_free_context(ctx); if (ctx->in_tkt_ktypes) { |