From: Ezra Peisach Date: Mon, 4 Sep 1995 18:14:26 +0000 (+0000) Subject: Add const declarations to make remove warnings about converting X-Git-Tag: krb5-1.0-beta6~1199 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fe791bff385e382aa049654a87de4dfb89694994;p=krb5.git Add const declarations to make remove warnings about converting a pointer to const string to a non-const type. Make this change consistant throughout the sources. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6657 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index ac3ef1c5f..c910062a4 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,9 @@ +Mon Sep 4 14:10:26 1995 Ezra Peisach + + * do_as_req.c, do_tgs_req.c, kdc_util.c, kdc_util.h, policy.c: Add + const declarations to variables pointing to error strings + in order to make everything self consistant. + Fri Sep 1 23:28:29 1995 Theodore Y. Ts'o * kdc_preauth.c: New file, to contain the server-side diff --git a/src/kdc/do_as_req.c b/src/kdc/do_as_req.c index a80d282f4..1cd3f4bf0 100644 --- a/src/kdc/do_as_req.c +++ b/src/kdc/do_as_req.c @@ -114,7 +114,7 @@ krb5_data **response; /* filled in with a response packet */ krb5_enctype useetype; krb5_pa_data *padat_tmp[2], padat_local; krb5_data salt_data; - char *status; + const char *status; krb5_encrypt_block eblock; krb5_key_data *server_key, *client_key; #ifdef KRBCONF_KDC_MODIFIES_KDB diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index 7afd45136..e5240691b 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -88,7 +88,7 @@ krb5_data **response; /* filled in with a response packet */ register int i; int firstpass = 1; int ok_key_data = 0; - char *status = 0; + const char *status = 0; char secondary_ch; if (is_secondary) diff --git a/src/kdc/kdc_util.c b/src/kdc/kdc_util.c index b7806ca61..ada0325c7 100644 --- a/src/kdc/kdc_util.c +++ b/src/kdc/kdc_util.c @@ -709,7 +709,7 @@ register krb5_kdc_req *request; krb5_db_entry client; krb5_db_entry server; krb5_timestamp kdc_time; -char **status; +const char **status; { int errcode; @@ -1001,7 +1001,7 @@ register krb5_kdc_req *request; krb5_db_entry server; krb5_ticket *ticket; krb5_timestamp kdc_time; -char **status; +const char **status; { int errcode; int st_idx = 0; diff --git a/src/kdc/kdc_util.h b/src/kdc/kdc_util.h index 6d5e5babd..ec9fd74a2 100644 --- a/src/kdc/kdc_util.h +++ b/src/kdc/kdc_util.h @@ -64,11 +64,11 @@ krb5_error_code kdc_get_server_key PROTOTYPE((krb5_ticket *, int validate_as_request PROTOTYPE((krb5_kdc_req *, krb5_db_entry, krb5_db_entry, krb5_timestamp, - char **)); + const char **)); int validate_tgs_request PROTOTYPE((krb5_kdc_req *, krb5_db_entry, krb5_ticket *, krb5_timestamp, - char **)); + const char **)); int fetch_asn1_field PROTOTYPE((unsigned char *, unsigned int, unsigned int, krb5_data *)); @@ -104,10 +104,10 @@ void process_packet PROTOTYPE((int, const char *, int)); /* policy.c */ int against_local_policy_as PROTOTYPE((krb5_kdc_req *, krb5_db_entry, krb5_db_entry, krb5_timestamp, - char **)); + const char **)); int against_local_policy_tgs PROTOTYPE((krb5_kdc_req *, krb5_db_entry, - krb5_ticket *, char **)); + krb5_ticket *, const char **)); /* kdc_preauth.c */ const char * missing_required_preauth diff --git a/src/kdc/policy.c b/src/kdc/policy.c index db5df2669..236224ae0 100644 --- a/src/kdc/policy.c +++ b/src/kdc/policy.c @@ -32,7 +32,7 @@ register krb5_kdc_req *request; krb5_db_entry client; krb5_db_entry server; krb5_timestamp kdc_time; -char **status; +const char **status; { #if 0 /* An AS request must include the addresses field */ @@ -53,7 +53,7 @@ against_local_policy_tgs(request, server, ticket, status) register krb5_kdc_req *request; krb5_db_entry server; krb5_ticket *ticket; -char **status; +const char **status; { #if 0 /*