summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDanilo Almeida <dalmeida@mit.edu>2001-07-28 00:16:06 +0000
committerDanilo Almeida <dalmeida@mit.edu>2001-07-28 00:16:06 +0000
commitdd2f0991e8ec33cb1021b34464305a281d68cf12 (patch)
tree6712311121ef7f9d9cd548062695f434ccec94b5 /src
parenta1a1e68676256196b760159be84fe6b5a2586f87 (diff)
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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13649 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/appl/gssftp/ftp/ChangeLog6
-rw-r--r--src/appl/gssftp/ftp/ftp.c29
2 files changed, 10 insertions, 25 deletions
diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog
index d80ada789..d9fc10c2b 100644
--- a/src/appl/gssftp/ftp/ChangeLog
+++ b/src/appl/gssftp/ftp/ChangeLog
@@ -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;
diff --git a/src/appl/gssftp/ftp/ftp.c b/src/appl/gssftp/ftp/ftp.c
index febc49cd4..da7c761f1 100644
--- a/src/appl/gssftp/ftp/ftp.c
+++ b/src/appl/gssftp/ftp/ftp.c
@@ -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),