Add const declarations to make remove warnings about converting
authorEzra Peisach <epeisach@mit.edu>
Mon, 4 Sep 1995 18:14:26 +0000 (18:14 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 4 Sep 1995 18:14:26 +0000 (18:14 +0000)
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

src/kdc/ChangeLog
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c
src/kdc/kdc_util.c
src/kdc/kdc_util.h
src/kdc/policy.c

index ac3ef1c5fb106f4c02d5a31e1388ff04d94de80c..c910062a4c66a8d1dbf1befd77fc61a23b8f3391 100644 (file)
@@ -1,3 +1,9 @@
+Mon Sep  4 14:10:26 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * 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  <tytso@dcl>
 
        * kdc_preauth.c: New file, to contain the server-side
index a80d282f45d55cd813af55752412ffbc23610ca4..1cd3f4bf0bba4772110ad316559abc4327cb2ddb 100644 (file)
@@ -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
index 7afd4513652c9583c0073671b42f90055ab72445..e5240691b839a9d0eb5920096f51c12a1ba59244 100644 (file)
@@ -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)
index b7806ca616394bdbffa9fea99b97199f2cba150b..ada0325c7aead4e676bfac79514ec9e34495414c 100644 (file)
@@ -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;
index 6d5e5babda2a02685e48dba23c579046a4003e89..ec9fd74a2fc84632fa0fb68afb1f9e9a1a95893c 100644 (file)
@@ -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
index db5df266987bbbcde65b7f8702c2c32a2ae9b478..236224ae0c6ffbd51ceddc450d478c523a40e05b 100644 (file)
@@ -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
     /*