+2003-08-26 Ken Raeburn <raeburn@mit.edu>
+
+ * cc_file.c (krb5_fcc_store_int32, krb5_fcc_store_ui_4)
+ (krb5_fcc_store_ui_2, krb5_fcc_store_octet): Remove gratuitous
+ conditionalizing of casts on USE_STDIO, left over from merge.
+
2003-07-22 Sam Hartman <hartmans@mit.edu>
* ccbase.c: Always register the file credentials cache type. If
(data->version == KRB5_FCC_FVNO_2))
return krb5_fcc_write(context, id, (char *) &i, sizeof(krb5_int32));
else {
-#ifndef USE_STDIO
buf[3] = (unsigned char) (i & 0xFF);
-#else
- buf[3] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[2] = (unsigned char) (i & 0xFF);
-#else
- buf[2] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[1] = (unsigned char) (i & 0xFF);
-#else
- buf[1] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[0] = (unsigned char) (i & 0xFF);
-#else
- buf[0] = i & 0xFF;
-#endif
-
return krb5_fcc_write(context, id, buf, 4);
}
}
(data->version == KRB5_FCC_FVNO_2))
return krb5_fcc_write(context, id, (char *) &i, sizeof(krb5_int32));
else {
-#ifndef USE_STDIO
buf[3] = (unsigned char) (i & 0xFF);
-#else
- buf[3] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[2] = (unsigned char) (i & 0xFF);
-#else
- buf[2] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[1] = (unsigned char) (i & 0xFF);
-#else
- buf[1] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[0] = (unsigned char) (i & 0xFF);
-#else
- buf[0] = i & 0xFF;
-#endif
-
return krb5_fcc_write(context, id, buf, 4);
}
}
if ((data->version == KRB5_FCC_FVNO_1) ||
(data->version == KRB5_FCC_FVNO_2)) {
-#ifndef USE_STDIO
ibuf = (krb5_ui_2) i;
-#else
- ibuf = i;
-#endif
return krb5_fcc_write(context, id, (char *) &ibuf, sizeof(krb5_ui_2));
} else {
-#ifndef USE_STDIO
buf[1] = (unsigned char) (i & 0xFF);
-#else
- buf[1] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[0] = (unsigned char) (i & 0xFF);
-#else
- buf[0] = i & 0xFF;
-#endif
-
return krb5_fcc_write(context, id, buf, 2);
}
}
{
krb5_octet ibuf;
-#ifndef USE_STDIO
ibuf = (krb5_octet) i;
-#else
- ibuf = i;
-#endif
return krb5_fcc_write(context, id, (char *) &ibuf, 1);
}