From 52b5bbc6984b55e21af9833611e66e92f19d6ac7 Mon Sep 17 00:00:00 2001 From: kouril Date: Mon, 3 May 2004 06:46:22 +0000 Subject: [PATCH] Added suffix '_internal' to all definitions copied from provate MIT header to avoid possible conflicts --- src/mit-internals.h | 12 ++++++------ src/mod_auth_kerb.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mit-internals.h b/src/mit-internals.h index b240028..38c1a6b 100644 --- a/src/mit-internals.h +++ b/src/mit-internals.h @@ -104,16 +104,16 @@ */ /* Definition from MIT krb5-1.3.3 krb5.h */ -typedef struct _krb5_donot_replay { +typedef struct _krb5_donot_replay_internal { krb5_magic magic; char *server; /* null-terminated */ char *client; /* null-terminated */ krb5_int32 cusec; krb5_timestamp ctime; -} krb5_donot_replay; +} krb5_donot_replay_internal; /* Definitions from MIT krb5-1.3.3 k5-int.h */ -struct _krb5_rc_ops { +struct _krb5_rc_ops_internal { krb5_magic magic; char *type; krb5_error_code (KRB5_CALLCONV *init) @@ -125,7 +125,7 @@ struct _krb5_rc_ops { krb5_error_code (KRB5_CALLCONV *close) (krb5_context, krb5_rcache); krb5_error_code (KRB5_CALLCONV *store) - (krb5_context, krb5_rcache,krb5_donot_replay *); + (krb5_context, krb5_rcache,krb5_donot_replay_internal *); krb5_error_code (KRB5_CALLCONV *expunge) (krb5_context, krb5_rcache); krb5_error_code (KRB5_CALLCONV *get_span) @@ -136,7 +136,7 @@ struct _krb5_rc_ops { (krb5_context, krb5_rcache, char *); }; -typedef struct _krb5_rc_ops krb5_rc_ops; +typedef struct _krb5_rc_ops_internal krb5_rc_ops_internal; /* Definitions from MIT krb5-1.3.3 rc_dfl.h */ extern krb5_error_code KRB5_CALLCONV krb5_rc_dfl_init @@ -172,7 +172,7 @@ extern krb5_error_code KRB5_CALLCONV krb5_rc_dfl_resolve * the definition in krb5.h */ struct krb5_rc_st_internal { krb5_magic magic; - const struct _krb5_rc_ops *ops; + const struct _krb5_rc_ops_internal *ops; krb5_pointer data; }; diff --git a/src/mod_auth_kerb.c b/src/mod_auth_kerb.c index 88da90b..b037ed0 100644 --- a/src/mod_auth_kerb.c +++ b/src/mod_auth_kerb.c @@ -198,13 +198,13 @@ static const command_rec kerb_auth_cmds[] = { /* This is our replacement krb5_rc_store function */ static krb5_error_code mod_auth_kerb_rc_store(krb5_context context, krb5_rcache rcache, - krb5_donot_replay *donot_replay) + krb5_donot_replay_internal *donot_replay) { return 0; } /* And this is the operations vector for our replay cache */ -const krb5_rc_ops mod_auth_kerb_rc_ops = { +const krb5_rc_ops_internal mod_auth_kerb_rc_ops = { 0, "dfl", krb5_rc_dfl_init, -- 2.1.4