Remove unused krb5_context fields
authorGreg Hudson <ghudson@mit.edu>
Wed, 18 Dec 2013 16:59:56 +0000 (11:59 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 18 Dec 2013 17:16:23 +0000 (12:16 -0500)
The vtbl and locate_fptrs fields were ostensibly related to the locate
pluggable interface, but weren't actually used.

src/include/k5-int.h
src/lib/krb5/krb/copy_ctx.c
src/lib/krb5/os/init_os_ctx.c

index 4f221fbeee6232ea14cc19544a4e0e2fa9b6bcd6..bbc7fab8e881aecb91a88332643c6a69171f9eff 100644 (file)
@@ -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;
index 5d841700303faff5990c3d843a9dbe2f9c08fa1b..0bc92f814b366988b6b3362c5e148acf23742ba5 100644 (file)
@@ -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));
 
index ff6061a2caf7b7928a4938bc994d157ce1f5c837..09809b9325e7dbe95fcdb27eba102f89cb300d04 100644 (file)
@@ -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;