]> git.pld-linux.org Git - packages/cifs-utils.git/blob - cifs-utils-heimdal.patch
- up to 6.7
[packages/cifs-utils.git] / cifs-utils-heimdal.patch
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
5   *
6   */
7 -static char *cifs_krb5_principal_get_realm(krb5_principal principal)
8 +static const char *cifs_krb5_principal_get_realm(krb5_principal principal)
9  {
10  #ifdef HAVE_KRB5_PRINCIPAL_GET_REALM   /* Heimdal */
11         return krb5_principal_get_realm(context, principal);
12 @@ -84,7 +84,7 @@
13  #elif defined(krb5_princ_realm)        /* MIT */
14         krb5_data *realm;
15         realm = krb5_princ_realm(context, principal);
16 -       return (char *)realm->data;
17 +       return (const char *)realm->data;
18  #else
19         return NULL;
20  #endif
21 @@ -116,7 +116,7 @@
22         krb5_creds creds;
23         krb5_principal principal;
24         time_t credtime = 0;
25 -       char *realm = NULL;
26 +       const char *realm = NULL;
27  
28         if (krb5_init_context(&context)) {
29                 syslog(LOG_DEBUG, "%s: unable to init krb5 context", __func__);
30 @@ -162,7 +162,7 @@
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);
35 +               krb5_xfree(name);
36         }
37  err_endseq:
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)
46  #else /* MIT */
47  #define KRB5_KEY_TYPE(k)        ((k)->enctype)
48  #define KRB5_KEY_LENGTH(k)      ((k)->length)
This page took 0.061655 seconds and 3 git commands to generate.