* keytab.c: (krb5_ktkdb_get_entry): Incoming principal is const
authorEzra Peisach <epeisach@mit.edu>
Mon, 15 Sep 1997 19:23:07 +0000 (19:23 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 15 Sep 1997 19:23:07 +0000 (19:23 +0000)
        * kdb_dbm.c (krb5_dbm_db_get_principal, krb5_dbm_db_delete_principal):
                Incoming principal is const.

        * kdb_xdr.c (krb5_dbe_update_mod_princ_data, krb5_encode_princ_dbkey):
                Incoming principal is const.

        * kdb_db2.h (krb5_db2_db_get_principal): Change prototype to const
                principal.

        * kdb_db2.c (krb5_db2_db_get_principal, krb5_db2_db_delete_principal):
                The search for principal is const.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10192 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/ChangeLog
src/lib/kdb/kdb_db2.c
src/lib/kdb/kdb_db2.h
src/lib/kdb/kdb_dbm.c
src/lib/kdb/kdb_xdr.c
src/lib/kdb/keytab.c

index bf2da3287332138c3d5d46ad562004cf87dba1c5..4b8b822f6e2357b7a5e9d34f14d64f19425ca976 100644 (file)
@@ -1,3 +1,19 @@
+Mon Sep 15 15:05:30 1997  Ezra Peisach  <epeisach@mit.edu>
+
+       * keytab.c: (krb5_ktkdb_get_entry): Incoming principal is const.
+
+       * kdb_dbm.c (krb5_dbm_db_get_principal, krb5_dbm_db_delete_principal):
+               Incoming principal is const.
+
+       * kdb_xdr.c (krb5_dbe_update_mod_princ_data, krb5_encode_princ_dbkey): 
+               Incoming principal is const.
+
+       * kdb_db2.h (krb5_db2_db_get_principal): Change prototype to const
+                principal.
+
+       * kdb_db2.c (krb5_db2_db_get_principal, krb5_db2_db_delete_principal):
+               The search for principal is const.
+
 Thu Jul 31 14:54:10 1997  Ezra Peisach  <epeisach@mit.edu>
 
        * kdb_db2.c (krb5_db2_db_delete_principal): Fix switch statement
index fc71e7dc703d7e2521461c6e8825e869b4f4ec18..80c9213dd36d9879718bd016818481af626ff859 100644 (file)
@@ -851,7 +851,7 @@ errout:
 krb5_error_code
 krb5_db2_db_get_principal(context, searchfor, entries, nentries, more)
     krb5_context context;
-    krb5_principal searchfor;
+    krb5_const_principal searchfor;
     krb5_db_entry *entries;    /* filled in */
     int *nentries;             /* how much room/how many found */
     krb5_boolean *more;                /* are there more? */
@@ -1005,7 +1005,7 @@ krb5_db2_db_put_principal(context, entries, nentries)
 krb5_error_code
 krb5_db2_db_delete_principal(context, searchfor, nentries)
     krb5_context context;
-    krb5_principal searchfor;
+    krb5_const_principal searchfor;
     int *nentries;             /* how many found & deleted */
 {
     krb5_error_code retval;
index 30359d79e533e915f86f67ad031c067ba6ff7af6..d17fde476995ba3a378000f75baffc6b6b683e7b 100644 (file)
@@ -89,7 +89,7 @@ krb5_error_code krb5_db2_db_rename
                   char * ));
 krb5_error_code krb5_db2_db_get_principal 
        KRB5_PROTOTYPE((krb5_context,
-                  krb5_principal,
+                  krb5_const_principal,
                   krb5_db_entry *,
                   int *,
                   krb5_boolean * ));
index a1dba73ee27dd064799b2464d74a9b7ae7f0568c..1ae241dfa02dd62fd89144551563e23fa796d420 100644 (file)
@@ -930,7 +930,7 @@ errout:
 krb5_error_code
 krb5_dbm_db_get_principal(context, searchfor, entries, nentries, more)
     krb5_context context;
-krb5_principal searchfor;
+krb5_const_principal searchfor;
 krb5_db_entry *entries;                /* filled in */
 int *nentries;                         /* how much room/how many found */
 krb5_boolean *more;                    /* are there more? */
@@ -1060,7 +1060,7 @@ krb5_dbm_db_put_principal(context, entries, nentries)
 krb5_error_code
 krb5_dbm_db_delete_principal(context, searchfor, nentries)
     krb5_context         context;
-    krb5_principal       searchfor;
+    krb5_const_principal  searchfor;
     int                * nentries;     /* how many found & deleted */
 {
     krb5_error_code      retval;
index 03a359636a6aa6f6b5e4e2d588c48cb0509fed10..209e4f3ca9ca5071f1ad3074c2c5b5f3c2e7f26e 100644 (file)
@@ -171,7 +171,7 @@ krb5_dbe_update_mod_princ_data(context, entry, mod_date, mod_princ)
     krb5_context         context;
     krb5_db_entry      * entry;
     krb5_timestamp       mod_date;
-    krb5_principal       mod_princ;
+    krb5_const_principal  mod_princ;
 {
     krb5_tl_data          tl_data;
 
@@ -246,7 +246,7 @@ krb5_error_code
 krb5_encode_princ_dbkey(context, key, principal)
     krb5_context context;
     krb5_data  *key;
-    krb5_principal principal;
+    krb5_const_principal principal;
 {
     char *princ_name;
     krb5_error_code retval;
index c114946ea031961e99f0928d19d56262cd729112..9c184b5148881d4a6477400ad533d03f3c62d956 100644 (file)
@@ -27,7 +27,7 @@
 
 krb5_error_code krb5_ktkdb_close KRB5_PROTOTYPE((krb5_context, krb5_keytab));
 
-krb5_error_code krb5_ktkdb_get_entry KRB5_PROTOTYPE((krb5_context, krb5_keytab, krb5_principal,
+krb5_error_code krb5_ktkdb_get_entry KRB5_PROTOTYPE((krb5_context, krb5_keytab, krb5_const_principal,
                   krb5_kvno, krb5_enctype, krb5_keytab_entry *));
 
 krb5_kt_ops krb5_kt_kdb_ops = {
@@ -84,7 +84,7 @@ krb5_error_code
 krb5_ktkdb_get_entry(context, id, principal, kvno, enctype, entry)
     krb5_context         context;
     krb5_keytab          id;
-    krb5_principal       principal;
+    krb5_const_principal  principal;
     krb5_kvno            kvno;
     krb5_enctype         enctype;
     krb5_keytab_entry  * entry;