git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10925 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-04-18 10:18:50 +00:00
parent d1927c345d
commit fc4f2a6921
4 changed files with 13 additions and 13 deletions

View File

@@ -37,7 +37,7 @@
RCSID("$Id$"); RCSID("$Id$");
static char *config_file; /* location of kdc config file */ static const char *config_file; /* location of kdc config file */
int require_preauth = -1; /* 1 == require preauth for all principals */ int require_preauth = -1; /* 1 == require preauth for all principals */
@@ -51,7 +51,7 @@ struct dbinfo *databases;
HDB **db; HDB **db;
int num_db; int num_db;
char *port_str; const char *port_str;
int enable_http = -1; int enable_http = -1;
krb5_boolean encode_as_rep_as_tgs_rep; /* bug compatibility */ krb5_boolean encode_as_rep_as_tgs_rep; /* bug compatibility */
@@ -130,9 +130,9 @@ usage(int ret)
static void static void
get_dbinfo(krb5_config_section *cf) get_dbinfo(krb5_config_section *cf)
{ {
krb5_config_binding *top_binding = NULL; const krb5_config_binding *top_binding = NULL;
krb5_config_binding *db_binding; const krb5_config_binding *db_binding;
krb5_config_binding *default_binding = NULL; const krb5_config_binding *default_binding = NULL;
struct dbinfo *di, **dt; struct dbinfo *di, **dt;
const char *default_dbname = HDB_DEFAULT_DB; const char *default_dbname = HDB_DEFAULT_DB;
const char *default_mkey = HDB_DB_DIR "/m-key"; const char *default_mkey = HDB_DB_DIR "/m-key";
@@ -140,7 +140,7 @@ get_dbinfo(krb5_config_section *cf)
databases = NULL; databases = NULL;
dt = &databases; dt = &databases;
while((db_binding = (krb5_config_binding *) while((db_binding = (const krb5_config_binding *)
krb5_config_get_next(context, cf, &top_binding, krb5_config_get_next(context, cf, &top_binding,
krb5_config_list, krb5_config_list,
"kdc", "kdc",

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2002 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -37,8 +37,8 @@ RCSID("$Id$");
static int version_flag; static int version_flag;
static int help_flag; static int help_flag;
static char *ktname = HPROP_KEYTAB; static const char *ktname = HPROP_KEYTAB;
static char *database; static const char *database;
static char *mkeyfile; static char *mkeyfile;
static int to_stdout; static int to_stdout;
static int verbose_flag; static int verbose_flag;

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997-2001 Kungliga Tekniska H<>gskolan * Copyright (c) 1997-2002 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -163,7 +163,7 @@ static int inetd_flag = -1;
static int help_flag; static int help_flag;
static int version_flag; static int version_flag;
static int print_dump; static int print_dump;
static char *database = HDB_DEFAULT_DB; static const char *database = HDB_DEFAULT_DB;
static int from_stdin; static int from_stdin;
static char *local_realm; static char *local_realm;
#ifdef KRB4 #ifdef KRB4

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan * Copyright (c) 1997, 1998, 1999, 2002 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -42,7 +42,7 @@ int afs;
char *principal; char *principal;
char *cell; char *cell;
char *password; char *password;
char *keytype_str = "des-cbc-md5"; const char *keytype_str = "des-cbc-md5";
int version; int version;
int help; int help;