+2001-03-12 Ezra Peisach <epeisach@mit.edu>
+
+ * krb524d.c: Provide prototypes for local functions.
+
+ * test.c: Declare local functions static.
+
2001-02-05 Tom Yu <tlyu@mit.edu>
* cnv_tkt_skey.c (krb524_convert_tkt_skey): Avoid double-free;
char *keytab = NULL;
krb5_keytab kt;
-void init_keytab(), init_master(), cleanup_and_exit();
-krb5_error_code do_connection(), lookup_service_key(), kdc_get_server_key();
-
-void usage(context)
+void init_keytab(krb5_context),
+ init_master(krb5_context, kadm5_config_params *),
+ cleanup_and_exit(int, krb5_context);
+krb5_error_code do_connection(int, krb5_context);
+krb5_error_code lookup_service_key(krb5_context, krb5_principal,
+ krb5_enctype, krb5_kvno,
+ krb5_keyblock *, krb5_kvno *);
+krb5_error_code kdc_get_server_key(krb5_context, krb5_principal,
+ krb5_keyblock *, krb5_kvno *,
+ krb5_enctype, krb5_kvno);
+
+static void usage(context)
krb5_context context;
{
fprintf(stderr, "Usage: %s [-k[eytab]] [-m[aster] [-r realm]] [-nofork]\n", whoami);
cleanup_and_exit(1, context);
}
-RETSIGTYPE request_exit(signo)
+static RETSIGTYPE request_exit(signo)
int signo;
{
signalled = 1;
void do_local PROTOTYPE((krb5_creds *, krb5_keyblock *)),
do_remote PROTOTYPE((krb5_context, krb5_creds *, char *, krb5_keyblock *));
+static
void print_key(msg, key)
char *msg;
char *key;
printf("\n");
}
+static
void print_time(msg, t)
char *msg;
int t;
printf("%s: %d, %s", msg, t, ctime((time_t *) &t));
}
+static
void krb5_print_times(msg, t)
char *msg;
krb5_ticket_times *t;
ctime((time_t *) &t->renew_till));
}
+static
void krb5_print_keyblock(msg, key)
char *msg;
krb5_keyblock *key;
printf("\n");
}
+static
void krb5_print_ticket(context, ticket_data, key)
krb5_context context;
krb5_data *ticket_data;
krb5_free_ticket(context, tkt);
}
+static
void krb5_print_creds(context, creds, secret_key)
krb5_context context;
krb5_creds *creds;
/* krb5_print_ticket(context, &creds->second_ticket, secret_key); */
}
+static
void krb4_print_ticket(ticket, secret_key)
KTEXT ticket;
krb5_keyblock *secret_key;
&issue_time));
}
+static
void krb4_print_creds(creds, secret_key)
CREDENTIALS *creds;
krb5_keyblock *secret_key;
krb4_print_ticket(&creds->ticket_st, secret_key);
}
+static
void usage()
{
fprintf(stderr, "Usage: test [-remote server] client service\n");