The code returns a pointer to static structures. Just to enforce the
assumption that users can not change the returned data.
Change prototype of krb5_kt_get_type to return const char *. The other
changes are to clean up warnings - no change in code - usage assumed const.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19143
dc483132-0cff-0310-8789-
dd5450dbe970
struct _krb5_kt;
typedef struct _krb5_kt *krb5_keytab;
-char * KRB5_CALLCONV
+const char * KRB5_CALLCONV
krb5_kt_get_type (krb5_context, krb5_keytab keytab);
krb5_error_code KRB5_CALLCONV
krb5_kt_get_name(krb5_context context, krb5_keytab keytab, char *name,
if (output_cred_handle) {
/* make a copy */
krb5_gss_cred_id_t new_cred;
- char *kttype, ktboth[1024];
- const char *cctype, *ccname;
+ char ktboth[1024];
+ const char *kttype, *cctype, *ccname;
char ccboth[1024];
if ((new_cred =
#include "k5-int.h"
-char * KRB5_CALLCONV
+const char * KRB5_CALLCONV
krb5_kt_get_type (krb5_context context, krb5_keytab keytab)
{
return keytab->ops->prefix;
{
krb5_error_code kret;
krb5_keytab kt;
- char *type;
+ const char *type;
char buf[BUFSIZ];
char *p;
krb5_keytab_entry kent;