updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / nfs-utils-ipv6 / nfs-utils-1.1.6-no_libgssapi.patch
blob917136a8ccbc230476f31372a2896d01dd4492f2
1 Index: nfs-utils-1.1.6/utils/gssd/context_lucid.c
2 ===================================================================
3 --- nfs-utils-1.1.6.orig/utils/gssd/context_lucid.c
4 +++ nfs-utils-1.1.6/utils/gssd/context_lucid.c
5 @@ -51,8 +51,10 @@
6 #include "context.h"
8 #ifndef OM_uint64
9 +#ifndef GSSAPI_GSSAPI_H_
10 typedef uint64_t OM_uint64;
11 #endif
12 +#endif
14 static int
15 write_lucid_keyblock(char **p, char *end, gss_krb5_lucid_key_t *key)
16 @@ -177,10 +179,10 @@
17 int retcode = 0;
19 printerr(2, "DEBUG: serialize_krb5_ctx: lucid version!\n");
20 - maj_stat = gss_export_lucid_sec_context(&min_stat, &ctx,
21 + maj_stat = gss_krb5_export_lucid_sec_context(&min_stat, &ctx,
22 1, &return_ctx);
23 if (maj_stat != GSS_S_COMPLETE) {
24 - pgsserr("gss_export_lucid_sec_context",
25 + pgsserr("gss_krb5_export_lucid_sec_context",
26 maj_stat, min_stat, &krb5oid);
27 goto out_err;
29 @@ -204,9 +206,9 @@
30 else
31 retcode = prepare_krb5_rfc_cfx_buffer(lctx, buf, endtime);
33 - maj_stat = gss_free_lucid_sec_context(&min_stat, ctx, return_ctx);
34 + maj_stat = gss_krb5_free_lucid_sec_context(&min_stat, ctx);
35 if (maj_stat != GSS_S_COMPLETE) {
36 - pgsserr("gss_export_lucid_sec_context",
37 + pgsserr("gss_krb5_export_lucid_sec_context",
38 maj_stat, min_stat, &krb5oid);
39 printerr(0, "WARN: failed to free lucid sec context\n");
41 Index: nfs-utils-1.1.6/utils/gssd/krb5_util.c
42 ===================================================================
43 --- nfs-utils-1.1.6.orig/utils/gssd/krb5_util.c
44 +++ nfs-utils-1.1.6/utils/gssd/krb5_util.c
45 @@ -332,10 +332,10 @@
46 return -1;
49 - maj_stat = gss_set_allowable_enctypes(&min_stat, credh, &krb5oid,
50 + maj_stat = gss_krb5_set_allowable_enctypes(&min_stat, credh,
51 num_enctypes, &enctypes);
52 if (maj_stat != GSS_S_COMPLETE) {
53 - pgsserr("gss_set_allowable_enctypes",
54 + pgsserr("gss_krb5_set_allowable_enctypes",
55 maj_stat, min_stat, &krb5oid);
56 gss_release_cred(&min_stat, &credh);
57 return -1;