+Mon Jun 10 21:46:06 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * scc_read.c:
+ * scc_gennew.c (krb5_scc_generate_new): Change _WINDOWS to _MSDOS,
+ and add check for _WIN32.
+
Wed Feb 14 10:44:27 1996 <tytso@rsts-11.mit.edu>
* scc_read.c (krb5_scc_read_keyblock, krb5_scc_read_data,
strcpy(((krb5_scc_data *) lid->data)->filename, scratch);
/* Make sure the file name is useable */
-#if defined(__STDC__) || defined(_WINDOWS)
+#if defined(__STDC__) || defined(_MSDOS) || defined(_WIN32)
f = fopen (((krb5_scc_data *) lid->data)->filename, "wb+");
#else
f = fopen (((krb5_scc_data *) lid->data)->filename, "w+");
kret = krb5_scc_read_int32(context, id, &int32);
CHECK(kret);
-#ifdef _WINDOWS
+#ifdef _MSDOS
int32 &= VALID_INT_BITS; /* Gradient does not write correctly */
#else
if ((int32 & VALID_INT_BITS) != int32) /* Overflow size_t??? */
kret = krb5_scc_read_int32(context, id, &len);
CHECK(kret);
-#ifdef _WINDOWS
+#ifdef _MSDOS
len &= VALID_INT_BITS;
#else
if ((len & VALID_INT_BITS) != len)
kret = krb5_scc_read_int32(context, id, &int32);
CHECK(kret);
-#ifdef _WINDOWS
+#ifdef _MSDOS
int32 &= VALID_INT_BITS; /* Gradient DCE does this wrong */
#else
if ((int32 & VALID_INT_BITS) != int32) /* Overflow int??? */
a->ad_type = (krb5_authdatatype)ui2;
kret = krb5_scc_read_int32(context, id, &int32);
CHECK(kret);
-#ifdef _WINDOWS
+#ifdef _MSDOS
int32 &= VALID_INT_BITS;
#else
if ((int32 & VALID_INT_BITS) != int32) /* Overflow int??? */