Remove local Win32-specific definition of gss_mech_krb5.
authorDanilo Almeida <dalmeida@mit.edu>
Sat, 28 Jul 2001 00:16:06 +0000 (00:16 +0000)
committerDanilo Almeida <dalmeida@mit.edu>
Sat, 28 Jul 2001 00:16:06 +0000 (00:16 +0000)
Use GSS_C_NO_OID instead of gss_mech_krb5 for mech_type to use an
implementation specific default.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13649 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gssftp/ftp/ChangeLog
src/appl/gssftp/ftp/ftp.c

index d80ada7891d2d4e5b355f27f05a5c7be114fedb7..d9fc10c2bf20f607ba3bf1e4f71fe94390fac25a 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-27  Danilo Almeida  <dalmeida@mit.edu>
+
+       * ftp.c: Remove local Win32-specific definition of gss_mech_krb5.
+       Use GSS_C_NO_OID instead of gss_mech_krb5 for mech_type to use an
+       implementation specific default.
+
 2001-07-24  Tom Yu  <tlyu@mit.edu>
 
        * getpass.c: Remove duplicate definitions of sig_t, my_sig_t;
index febc49cd4c6fa4297a400ade543dc956f70c4e2d..da7c761f195d254730beac68f2fa38b72f177f93 100644 (file)
@@ -1959,34 +1959,13 @@ gunique(local)
 char realm[REALM_SZ + 1];
 #endif /* KRB5_KRB4_COMPAT */
 
-#ifdef _WIN32
-const gss_OID_desc krb5_gss_oid_array[] = {
-   /* this is the official, rfc-specified OID */
-   {9, "\052\206\110\206\367\022\001\002\002"},
-   /* this is the unofficial, wrong OID */
-   {5, "\053\005\001\005\002"},
-   /* this is the v2 assigned OID */
-   {9, "\052\206\110\206\367\022\001\002\003"},
-   /* these two are name type OID's */
-   {10, "\052\206\110\206\367\022\001\002\002\001"},
-   {10, "\052\206\110\206\367\022\001\002\002\002"},
-   { 0, 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;
-#endif
-
 #ifdef GSSAPI
 struct {
-    const gss_OID_desc * const * mech_type;
+    gss_OID *mech_type;
     char *service_name;
 } gss_trials[] = {
-    { &gss_mech_krb5, "ftp" },
-    { &gss_mech_krb5, "host" },
+    { GSS_C_NO_OID, "ftp" },
+    { GSS_C_NO_OID, "host" },
 };
 int n_gss_trials = sizeof(gss_trials)/sizeof(gss_trials[0]);
 #endif /* GSSAPI */
@@ -2058,7 +2037,7 @@ int do_auth()
                                     GSS_C_NO_CREDENTIAL,
                                     &gcontext,
                                     target_name,
-                                    (gss_OID_desc *)*gss_trials[trial].mech_type,
+                                    (gss_OID_desc *)gss_trials[trial].mech_type,
                                     GSS_C_MUTUAL_FLAG | GSS_C_REPLAY_FLAG |
                                       (forward ? GSS_C_DELEG_FLAG : 
                                        (unsigned) 0),