1 --- cifs-utils-5.5/cifs.upcall.c.orig 2012-05-30 12:12:16.000000000 +0200
2 +++ cifs-utils-5.5/cifs.upcall.c 2012-06-24 20:47:02.372423189 +0200
3 @@ -71,7 +71,7 @@ typedef enum _sectype {
4 * @return pointer to the realm
7 -static char *cifs_krb5_principal_get_realm(krb5_principal principal)
8 +static const char *cifs_krb5_principal_get_realm(krb5_principal principal)
10 #ifdef HAVE_KRB5_PRINCIPAL_GET_REALM /* Heimdal */
11 return krb5_principal_get_realm(context, principal);
13 #elif defined(krb5_princ_realm) /* MIT */
15 realm = krb5_princ_realm(context, principal);
16 - return (char *)realm->data;
17 + return (const char *)realm->data;
23 krb5_principal principal;
26 + const char *realm = NULL;
28 if (krb5_init_context(&context)) {
29 syslog(LOG_DEBUG, "%s: unable to init krb5 context", __func__);
31 && creds.times.endtime > time(NULL))
32 credtime = creds.times.endtime;
33 krb5_free_cred_contents(context, &creds);
34 - krb5_free_unparsed_name(context, name);
38 krb5_cc_end_seq_get(context, ccache, &cur);
39 --- cifs-utils-6.7/cifs.upcall.c~ 2017-09-05 09:43:27.000000000 +0200
40 +++ cifs-utils-6.7/cifs.upcall.c 2017-09-05 09:50:53.113486219 +0200
41 @@ -75,6 +75,7 @@ typedef enum _sectype {
42 #define KRB5_KEY_LENGTH(k) ((k)->keyvalue.length)
43 #define KRB5_KEY_DATA(k) ((k)->keyvalue.data)
44 #define KRB5_KEY_DATA_CAST void
45 +#define krb5_free_string(ctx, string) krb5_xfree(string)
47 #define KRB5_KEY_TYPE(k) ((k)->enctype)
48 #define KRB5_KEY_LENGTH(k) ((k)->length)