Skip to content

Commit

Permalink
Remove unused krb5_context fields
Browse files Browse the repository at this point in the history
The vtbl and locate_fptrs fields were ostensibly related to the locate
pluggable interface, but weren't actually used.
  • Loading branch information
greghudson committed Dec 18, 2013
1 parent bf1d3c7 commit c91f2a2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/include/k5-int.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/lib/krb5/krb/copy_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
1 change: 0 additions & 1 deletion src/lib/krb5/os/init_os_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c91f2a2

Please sign in to comment.