* kerberos_v4.c: Do not shadow progname and more variables.
* rtest.c (make_princ): Declare static.
* sock2p.c: Include kdc_util.h for prototypes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13064
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-03-08 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * kdc_util.h: Add prototype for process_v4_mode() for main.c to use.
+
+ * kerberos_v4.c: Do not shadow progname and more variables.
+
+ * rtest.c (make_princ): Declare static.
+
+ * sock2p.c: Include kdc_util.h for prototypes.
+
2001-02-08 Tom Yu <tlyu@mit.edu>
* kerberos_v4.c (kerberos_v4): Remove references to
kdc_active_realm->realm_dbname);
krb5_db_init(kdc_context);
/* Reset master key */
- krb5_db_set_mkey(kdc_context, &kdc_active_realm->realm_encblock);
+ krb5_db_set_mkey(kdc_context, &kdc_active_realm->realm_mkey);
}
#endif /* KRBCONF_KDC_MODIFIES_KDB */
krb5_db_free_principal(kdc_context, &client, c_nprincs);
const krb5_fulladdr *,
int is_secondary,
krb5_data **));
+void process_v4_mode PROTOTYPE((const char *, const char *));
#else
#define process_v4(foo,bar,quux,foobar) KRB5KRB_AP_ERR_BADVERSION
#endif
static char log_text[512];
static char *lt;
-static int more;
/* fields within the received request packet */
static u_char req_msg_type;
static const int v4mode_table_nents = sizeof(v4mode_table)/
sizeof(v4mode_table[0]);
-void process_v4_mode(progname, string)
- const char *progname;
+void process_v4_mode(program_name, string)
+ const char *program_name;
const char *string;
{
int i, found;
if(!found) {
/* It is considered fatal if we request a mode that is not found */
- com_err(progname, 0, "invalid v4_mode %s", string);
+ com_err(program_name, 0, "invalid v4_mode %s", string);
exit(1);
}
return;
int n;
static char lastrealm[REALM_SZ] = "";
static int last_kvno = 0;
+ static int more;
Principal p_st;
Principal *p = &p_st;
C_Block key;
#include "kdc_util.h"
#include "extern.h"
-krb5_principal
+static krb5_principal
make_princ(ctx, str, prog)
krb5_context ctx;
const char *str;
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
+#include "kdc_util.h"
#ifndef HAVE_INET_NTOP
char *