2002-07-01 Ken Raeburn <raeburn@mit.edu>
+ * 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
/* 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);
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);
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;
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;
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;
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;
{
*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);
*/
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);
}
* 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;
* 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)) {