Blame SOURCES/krb5-master-rcache-internal-const.patch

7d335d
commit 74ff6c4accb68bd1d6c652c55e66519720db9fc4
7d335d
Author: Greg Hudson <ghudson@mit.edu>
7d335d
Date:   Wed Jan 15 12:31:41 2014 -0500
7d335d
7d335d
    Make rcache resolve functions take const char *
7d335d
7d335d
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
7d335d
index bbc7fab..b4757a9 100644
7d335d
--- a/src/include/k5-int.h
7d335d
+++ b/src/include/k5-int.h
7d335d
@@ -1887,8 +1887,10 @@ krb5_error_code KRB5_CALLCONV
7d335d
 krb5int_cc_user_set_default_name(krb5_context context, const char *name);
7d335d
 
7d335d
 krb5_error_code krb5_rc_default(krb5_context, krb5_rcache *);
7d335d
-krb5_error_code krb5_rc_resolve_type(krb5_context, krb5_rcache *,char *);
7d335d
-krb5_error_code krb5_rc_resolve_full(krb5_context, krb5_rcache *,char *);
7d335d
+krb5_error_code krb5_rc_resolve_type(krb5_context, krb5_rcache *,
7d335d
+                                     const char *);
7d335d
+krb5_error_code krb5_rc_resolve_full(krb5_context, krb5_rcache *,
7d335d
+                                     const char *);
7d335d
 char *krb5_rc_get_type(krb5_context, krb5_rcache);
7d335d
 char *krb5_rc_default_type(krb5_context);
7d335d
 char *krb5_rc_default_name(krb5_context);
7d335d
diff --git a/src/lib/krb5/rcache/rc_base.c b/src/lib/krb5/rcache/rc_base.c
7d335d
index 2fc96c5..373ac30 100644
7d335d
--- a/src/lib/krb5/rcache/rc_base.c
7d335d
+++ b/src/lib/krb5/rcache/rc_base.c
7d335d
@@ -65,7 +65,8 @@ krb5_rc_register_type(krb5_context context, const krb5_rc_ops *ops)
7d335d
 }
7d335d
 
7d335d
 krb5_error_code
7d335d
-krb5_rc_resolve_type(krb5_context context, krb5_rcache *idptr, char *type)
7d335d
+krb5_rc_resolve_type(krb5_context context, krb5_rcache *idptr,
7d335d
+                     const char *type)
7d335d
 {
7d335d
     struct krb5_rc_typelist *t;
7d335d
     krb5_error_code err;
7d335d
@@ -146,7 +147,7 @@ krb5_rc_default(krb5_context context, krb5_rcache *idptr)
7d335d
 
7d335d
 krb5_error_code
7d335d
 krb5_rc_resolve_full(krb5_context context, krb5_rcache *idptr,
7d335d
-                     char *string_name)
7d335d
+                     const char *string_name)
7d335d
 {
7d335d
     char *type;
7d335d
     char *residual;