From 16f120444e743bdae590d07301d8f2d527219bee Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 1 Jul 2002 20:48:34 +0000 Subject: [PATCH] remove gss krb5 mech2 oid and oidset variables git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14592 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 12 ++++++++++++ src/lib/gssapi/krb5/add_cred.c | 3 +-- src/lib/gssapi/krb5/canon_name.c | 3 +-- src/lib/gssapi/krb5/disp_status.c | 1 - src/lib/gssapi/krb5/gssapi_krb5.c | 3 --- src/lib/gssapi/krb5/gssapi_krb5.h | 3 --- src/lib/gssapi/krb5/indicate_mechs.c | 2 +- src/lib/gssapi/krb5/inq_cred.c | 3 +-- src/lib/gssapi/krb5/inq_names.c | 1 - src/lib/gssapi/krb5/rel_oid.c | 3 +-- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index a7982c634..f7a8b0a30 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,5 +1,17 @@ 2002-07-01 Ken Raeburn + * gssapi_krb5.c (gss_mech_krb5_v2, gss_mech_set_krb5_v2, + gss_mech_set_krb5_v1v2): Delete variables. + * gssapi_krb5.h (gss_mech_krb5_v2, gss_mech_set_krb5_v2, + gss_mech_set_krb5_v1v2): Delete declarations. + * add_cred.c (krb5_gss_add_cred): Delete uses of them. + * canon_name.c (krb5_gss_canonicalize_name): Ditto. + * disp_status.c (krb5_gss_display_status): Ditto. + * indicate_mechs.c (krb5_gss_indicate_mechs): Ditto. + * inq_cred.c (krb5_gss_inquire_cred_by_mech): Ditto. + * inq_names.c (krb5_gss_inquire_names_for_mech): Ditto. + * rel_oid.c (krb5_gss_internal_release_oid): Ditto. + * accept_sec_context.c (rd_and_store_for_creds): Extra parens around assignments to quiet gcc. (krb5_gss_accept_sec_context): Fix some type mismatches between diff --git a/src/lib/gssapi/krb5/add_cred.c b/src/lib/gssapi/krb5/add_cred.c index ab393ee29..4bbee5ef3 100644 --- a/src/lib/gssapi/krb5/add_cred.c +++ b/src/lib/gssapi/krb5/add_cred.c @@ -89,8 +89,7 @@ krb5_gss_add_cred(minor_status, input_cred_handle, /* check if the desired_mech is bogus */ - if (!g_OID_equal(desired_mech, gss_mech_krb5_v2) && - !g_OID_equal(desired_mech, gss_mech_krb5) && + if (!g_OID_equal(desired_mech, gss_mech_krb5) && !g_OID_equal(desired_mech, gss_mech_krb5_old)) { *minor_status = 0; return(GSS_S_BAD_MECH); diff --git a/src/lib/gssapi/krb5/canon_name.c b/src/lib/gssapi/krb5/canon_name.c index 169fe6b58..aed67c352 100644 --- a/src/lib/gssapi/krb5/canon_name.c +++ b/src/lib/gssapi/krb5/canon_name.c @@ -34,8 +34,7 @@ OM_uint32 krb5_gss_canonicalize_name(OM_uint32 *minor_status, const gss_OID mech_type, gss_name_t *output_name) { - if (!g_OID_equal(gss_mech_krb5_v2, mech_type) && - !g_OID_equal(gss_mech_krb5, mech_type) && + if (!g_OID_equal(gss_mech_krb5, mech_type) && !g_OID_equal(gss_mech_krb5_old, mech_type)) { *minor_status = 0; return(GSS_S_BAD_MECH); diff --git a/src/lib/gssapi/krb5/disp_status.c b/src/lib/gssapi/krb5/disp_status.c index 3a6ba7b1a..0b296f6ce 100644 --- a/src/lib/gssapi/krb5/disp_status.c +++ b/src/lib/gssapi/krb5/disp_status.c @@ -49,7 +49,6 @@ krb5_gss_display_status(minor_status, status_value, status_type, return(GSS_S_FAILURE); if ((mech_type != GSS_C_NULL_OID) && - !g_OID_equal(gss_mech_krb5_v2, mech_type) && !g_OID_equal(gss_mech_krb5, mech_type) && !g_OID_equal(gss_mech_krb5_old, mech_type)) { *minor_status = 0; diff --git a/src/lib/gssapi/krb5/gssapi_krb5.c b/src/lib/gssapi/krb5/gssapi_krb5.c index 7293c6dc0..efcf36c86 100644 --- a/src/lib/gssapi/krb5/gssapi_krb5.c +++ b/src/lib/gssapi/krb5/gssapi_krb5.c @@ -100,7 +100,6 @@ const gss_OID_desc krb5_gss_oid_array[] = { const gss_OID_desc * const gss_mech_krb5 = krb5_gss_oid_array+0; const gss_OID_desc * const gss_mech_krb5_old = krb5_gss_oid_array+1; -const gss_OID_desc * const gss_mech_krb5_v2 = krb5_gss_oid_array+2; const gss_OID_desc * const gss_nt_krb5_name = krb5_gss_oid_array+3; const gss_OID_desc * const gss_nt_krb5_principal = krb5_gss_oid_array+4; @@ -115,8 +114,6 @@ static const gss_OID_set_desc oidsets[] = { const gss_OID_set_desc * const gss_mech_set_krb5 = oidsets+0; const gss_OID_set_desc * const gss_mech_set_krb5_old = oidsets+1; const gss_OID_set_desc * const gss_mech_set_krb5_both = oidsets+2; -const gss_OID_set_desc * const gss_mech_set_krb5_v2 = oidsets+3; -const gss_OID_set_desc * const gss_mech_set_krb5_v1v2 = oidsets+4; void *kg_vdb = NULL; diff --git a/src/lib/gssapi/krb5/gssapi_krb5.h b/src/lib/gssapi/krb5/gssapi_krb5.h index ea599464b..da2e94e7e 100644 --- a/src/lib/gssapi/krb5/gssapi_krb5.h +++ b/src/lib/gssapi/krb5/gssapi_krb5.h @@ -32,12 +32,9 @@ extern "C" { extern const gss_OID_desc * const gss_mech_krb5; extern const gss_OID_desc * const gss_mech_krb5_old; -extern const gss_OID_desc * const gss_mech_krb5_v2; extern const gss_OID_set_desc * const gss_mech_set_krb5; extern const gss_OID_set_desc * const gss_mech_set_krb5_old; extern const gss_OID_set_desc * const gss_mech_set_krb5_both; -extern const gss_OID_set_desc * const gss_mech_set_krb5_v2; -extern const gss_OID_set_desc * const gss_mech_set_krb5_v1v2; extern const gss_OID_desc * const gss_nt_krb5_name; extern const gss_OID_desc * const gss_nt_krb5_principal; diff --git a/src/lib/gssapi/krb5/indicate_mechs.c b/src/lib/gssapi/krb5/indicate_mechs.c index 971811304..48baf1a0e 100644 --- a/src/lib/gssapi/krb5/indicate_mechs.c +++ b/src/lib/gssapi/krb5/indicate_mechs.c @@ -33,7 +33,7 @@ krb5_gss_indicate_mechs(minor_status, mech_set) { *minor_status = 0; - if (! g_copy_OID_set(gss_mech_set_krb5_v1v2, mech_set)) { + if (! g_copy_OID_set(gss_mech_set_krb5_both, mech_set)) { *mech_set = GSS_C_NO_OID_SET; *minor_status = ENOMEM; return(GSS_S_FAILURE); diff --git a/src/lib/gssapi/krb5/inq_cred.c b/src/lib/gssapi/krb5/inq_cred.c index 6fbbadcbe..88001ff4e 100644 --- a/src/lib/gssapi/krb5/inq_cred.c +++ b/src/lib/gssapi/krb5/inq_cred.c @@ -201,8 +201,7 @@ krb5_gss_inquire_cred_by_mech(minor_status, cred_handle, */ if ((mech_type != GSS_C_NULL_OID) && !g_OID_equal(gss_mech_krb5_old, mech_type) && - !g_OID_equal(gss_mech_krb5, mech_type) && - !g_OID_equal(gss_mech_krb5_v2, mech_type)) { + !g_OID_equal(gss_mech_krb5, mech_type)) { *minor_status = 0; return(GSS_S_NO_CRED); } diff --git a/src/lib/gssapi/krb5/inq_names.c b/src/lib/gssapi/krb5/inq_names.c index ba95a3bc1..dc6247204 100644 --- a/src/lib/gssapi/krb5/inq_names.c +++ b/src/lib/gssapi/krb5/inq_names.c @@ -46,7 +46,6 @@ krb5_gss_inquire_names_for_mech(minor_status, mechanism, name_types) * We only know how to handle our own mechanism. */ if ((mechanism != GSS_C_NULL_OID) && - !g_OID_equal(gss_mech_krb5_v2, mechanism) && !g_OID_equal(gss_mech_krb5, mechanism) && !g_OID_equal(gss_mech_krb5_old, mechanism)) { *minor_status = 0; diff --git a/src/lib/gssapi/krb5/rel_oid.c b/src/lib/gssapi/krb5/rel_oid.c index 066daf414..ae6f5e5f5 100644 --- a/src/lib/gssapi/krb5/rel_oid.c +++ b/src/lib/gssapi/krb5/rel_oid.c @@ -66,8 +66,7 @@ krb5_gss_internal_release_oid(minor_status, oid) * return GSS_S_CONTINUE_NEEDED for any OIDs it does not recognize. */ - if ((*oid != gss_mech_krb5_v2) && - (*oid != gss_mech_krb5) && + if ((*oid != gss_mech_krb5) && (*oid != gss_mech_krb5_old) && (*oid != gss_nt_krb5_name) && (*oid != gss_nt_krb5_principal)) { -- 2.26.2