Remove EAP support from GSSAPI plugin
authorLuke Howard <lukeh@padl.com>
Thu, 21 Oct 2010 22:10:22 +0000 (09:10 +1100)
committerLuke Howard <lukeh@padl.com>
Thu, 21 Oct 2010 22:10:22 +0000 (09:10 +1100)
plugins/gssapi.c

index 947418e..c4b5696 100644 (file)
@@ -144,8 +144,6 @@ static gss_OID_desc gss_spnego_mechanism_oid_desc =
         {6, (void *)"\x2b\x06\x01\x05\x05\x02"};
 static gss_OID_desc gss_krb5_mechanism_oid_desc =
         {9, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02"};
         {6, (void *)"\x2b\x06\x01\x05\x05\x02"};
 static gss_OID_desc gss_krb5_mechanism_oid_desc =
         {9, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02"};
-static gss_OID_desc gss_eap_mechanism_oid_desc =
-        {9, (void *)"\x2b\x06\x01\x04\x01\xa9\x4a\x15\x01" };
 
 typedef struct context {
     int state;
 
 typedef struct context {
     int state;
@@ -1274,27 +1272,6 @@ static sasl_server_plug_t gssapi_server_plugins[] =
        NULL,                           /* mech_avail */
        NULL                            /* spare */
     },
        NULL,                           /* mech_avail */
        NULL                            /* spare */
     },
-#if 0
-    {
-       "GSS-EAP",                      /* mech_name */
-       128,                            /* max_ssf */
-       SASL_SEC_NOPLAINTEXT
-       | SASL_SEC_NOACTIVE
-       | SASL_SEC_MUTUAL_AUTH,         /* security_flags */
-       SASL_FEAT_WANT_CLIENT_FIRST
-       | SASL_FEAT_ALLOWS_PROXY,       /* features */
-       NULL,                           /* glob_context */
-       &gssapi_server_mech_new,        /* mech_new */
-       &gssapi_server_mech_step,       /* mech_step */
-       &gssapi_common_mech_dispose,    /* mech_dispose */
-       &gssapi_common_mech_free,       /* mech_free */
-       NULL,                           /* setpass */
-       NULL,                           /* user_query */
-       NULL,                           /* idle */
-       NULL,                           /* mech_avail */
-       NULL                            /* spare */
-    }
-#endif
 };
 
 int gssapiv2_server_plug_init(
 };
 
 int gssapiv2_server_plug_init(
@@ -1407,14 +1384,6 @@ static int gss_spnego_client_mech_new(void *glob_context,
                                    0, conn_context);
 }
 
                                    0, conn_context);
 }
 
-static int gss_eap_client_mech_new(void *glob_context,
-                                  sasl_client_params_t *params,
-                                  void **conn_context)
-{
-    return _gssapi_client_mech_new(glob_context, params, &gss_eap_mechanism_oid_desc,
-                                   1, conn_context);
-}
-
 static int gssapi_client_mech_step(void *conn_context,
                                   sasl_client_params_t *params,
                                   const char *serverin,
 static int gssapi_client_mech_step(void *conn_context,
                                   sasl_client_params_t *params,
                                   const char *serverin,
@@ -1996,29 +1965,6 @@ static sasl_client_plug_t gssapi_client_plugins[] =
        NULL,                           /* spare */
        NULL                            /* spare */
     },
        NULL,                           /* spare */
        NULL                            /* spare */
     },
-#if 0
-    {
-       "GSS-EAP",                      /* mech_name */
-       128,                            /* max_ssf */
-       SASL_SEC_NOPLAINTEXT
-       | SASL_SEC_NOACTIVE
-       | SASL_SEC_NOANONYMOUS
-       | SASL_SEC_MUTUAL_AUTH 
-       | SASL_SEC_PASS_CREDENTIALS,    /* security_flags */
-       SASL_FEAT_NEEDSERVERFQDN
-       | SASL_FEAT_WANT_CLIENT_FIRST
-       | SASL_FEAT_ALLOWS_PROXY,       /* features */
-       gssapi_required_prompts,        /* required_prompts */
-       NULL,                           /* glob_context */
-       &gss_eap_client_mech_new,       /* mech_new */
-       &gssapi_client_mech_step,       /* mech_step */
-       &gssapi_common_mech_dispose,    /* mech_dispose */
-       &gssapi_common_mech_free,       /* mech_free */
-       NULL,                           /* idle */
-       NULL,                           /* spare */
-       NULL                            /* spare */
-    },
-#endif
 };
 
 int gssapiv2_client_plug_init(const sasl_utils_t *utils __attribute__((unused)), 
 };
 
 int gssapiv2_client_plug_init(const sasl_utils_t *utils __attribute__((unused)),