From: Ezra Peisach Date: Mon, 15 Sep 1997 19:23:07 +0000 (+0000) Subject: * keytab.c: (krb5_ktkdb_get_entry): Incoming principal is const X-Git-Tag: krb5-1.1-beta1~1033 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bfe6429a72ce9d2385e02a305d4877d4fa8c8ca8;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10192 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index bf2da3287..4b8b822f6 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,19 @@ +Mon Sep 15 15:05:30 1997 Ezra Peisach + + * 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 * kdb_db2.c (krb5_db2_db_delete_principal): Fix switch statement diff --git a/src/lib/kdb/kdb_db2.c b/src/lib/kdb/kdb_db2.c index fc71e7dc7..80c9213dd 100644 --- a/src/lib/kdb/kdb_db2.c +++ b/src/lib/kdb/kdb_db2.c @@ -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; diff --git a/src/lib/kdb/kdb_db2.h b/src/lib/kdb/kdb_db2.h index 30359d79e..d17fde476 100644 --- a/src/lib/kdb/kdb_db2.h +++ b/src/lib/kdb/kdb_db2.h @@ -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 * )); diff --git a/src/lib/kdb/kdb_dbm.c b/src/lib/kdb/kdb_dbm.c index a1dba73ee..1ae241dfa 100644 --- a/src/lib/kdb/kdb_dbm.c +++ b/src/lib/kdb/kdb_dbm.c @@ -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; diff --git a/src/lib/kdb/kdb_xdr.c b/src/lib/kdb/kdb_xdr.c index 03a359636..209e4f3ca 100644 --- a/src/lib/kdb/kdb_xdr.c +++ b/src/lib/kdb/kdb_xdr.c @@ -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; diff --git a/src/lib/kdb/keytab.c b/src/lib/kdb/keytab.c index c114946ea..9c184b514 100644 --- a/src/lib/kdb/keytab.c +++ b/src/lib/kdb/keytab.c @@ -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;