+2004-05-30 Ken Raeburn <raeburn@mit.edu>
+
+ * getdate.y: Include krb5.h and kadmin.h.
+ (get_date): Drop second argument; always use NULL.
+ * kadmin.h: Include time.h and/or sys/time.h.
+ (get_date): Declare.
+ * kadmin.c (get_date): Don't declare.
+ (kadmin_parse_princ_args, kadmin_parse_policy_args): Drop second
+ argument to get_date.
+ * Makefile.in (LOCALINCLUDES): Define.
+
2003-08-26 Ken Raeburn <raeburn@mit.edu>
* getdate.y (bcopy): Don't bother with HAVE_BCOPY and HAVE_MEMCPY
int exit_status = 0;
char *def_realm = NULL;
char *whoami = NULL;
-time_t get_date();
void *handle = NULL;
krb5_context context;
if (++i > argc - 2)
return -1;
else {
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)-1) {
fprintf(stderr, "Invalid date specification \"%s\".\n",
argv[i]);
if (++i > argc - 2)
return -1;
else {
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)-1) {
fprintf(stderr, "Invalid date specification \"%s\".\n",
argv[i]);
if (++i > argc - 2)
return -1;
else {
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)-1) {
fprintf(stderr, "Invalid date specification \"%s\".\n",
argv[i]);
if (++i > argc - 2)
return -1;
else {
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)-1) {
fprintf(stderr, "Invalid date specification \"%s\".\n",
argv[i]);
if (++i > argc -2)
return -1;
else {
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)-1) {
fprintf(stderr, "Invalid date specification \"%s\".\n",
argv[i]);
if (++i > argc - 2)
return -1;
else {
- date = get_date(argv[i], NULL);
+ date = get_date(argv[i]);
if (date == (time_t)-1) {
fprintf(stderr, "Invalid date specification \"%s\".\n",
argv[i]);
extern void kadmin_keytab_add(int argc, char *argv[]);
extern void kadmin_keytab_remove(int argc, char *argv[]);
+#ifdef TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif
+
+extern time_t get_date(char *);
+
/* Yucky global variables */
extern krb5_context context;
extern char *krb5_defkeyname;