krb5 commit: Remove unused krb5_context fields

Greg Hudson ghudson at MIT.EDU
Wed Dec 18 12:16:55 EST 2013


https://github.com/krb5/krb5/commit/c91f2a285e77e71bd283483d583c68e76eb3a0dd
commit c91f2a285e77e71bd283483d583c68e76eb3a0dd
Author: Greg Hudson <ghudson at mit.edu>
Date:   Wed Dec 18 11:59:56 2013 -0500

    Remove unused krb5_context fields
    
    The vtbl and locate_fptrs fields were ostensibly related to the locate
    pluggable interface, but weren't actually used.

 src/include/k5-int.h          |    2 --
 src/lib/krb5/krb/copy_ctx.c   |    2 --
 src/lib/krb5/os/init_os_ctx.c |    1 -
 3 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 4f221fb..bbc7fab 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -1151,8 +1151,6 @@ struct _krb5_context {
 
     /* locate_kdc module stuff */
     struct plugin_dir_handle libkrb5_plugins;
-    struct krb5plugin_service_locate_ftable *vtbl;
-    void (**locate_fptrs)(void);
 
     /* preauth module stuff */
     krb5_preauth_context *preauth_context;
diff --git a/src/lib/krb5/krb/copy_ctx.c b/src/lib/krb5/krb/copy_ctx.c
index 5d84170..0bc92f8 100644
--- a/src/lib/krb5/krb/copy_ctx.c
+++ b/src/lib/krb5/krb/copy_ctx.c
@@ -80,8 +80,6 @@ krb5_copy_context(krb5_context ctx, krb5_context *nctx_out)
     nctx->os_context.default_ccname = NULL;
 
     memset(&nctx->libkrb5_plugins, 0, sizeof(nctx->libkrb5_plugins));
-    nctx->vtbl = NULL;
-    nctx->locate_fptrs = NULL;
 
     memset(&nctx->err, 0, sizeof(nctx->err));
 
diff --git a/src/lib/krb5/os/init_os_ctx.c b/src/lib/krb5/os/init_os_ctx.c
index ff6061a..09809b9 100644
--- a/src/lib/krb5/os/init_os_ctx.c
+++ b/src/lib/krb5/os/init_os_ctx.c
@@ -428,7 +428,6 @@ k5_os_init_context(krb5_context ctx, profile_t profile, krb5_flags flags)
     os_ctx->os_flags = 0;
     os_ctx->default_ccname = 0;
 
-    ctx->vtbl = 0;
     PLUGIN_DIR_INIT(&ctx->libkrb5_plugins);
     ctx->preauth_context = NULL;
 


More information about the cvs-krb5 mailing list