summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-03-26 12:04:06 -0400
committerSimo Sorce <simo@redhat.com>2013-03-26 12:20:45 -0400
commit1f7c862d24da1328d53ed0980fd9abd19ad550ae (patch)
tree1ffb8ce3a82b6f3d3e641d2b6f83831d8e84ff30
parentb2e5838ca102f3eee3564a36d0d227e81346043e (diff)
downloadnfs-utils-master.zip
nfs-utils-master.tar.gz
nfs-utils-master.tar.xz
Provide macros for non-standard gss symbolsHEADmaster
libgsglue uses non standard name for mechanism specific extensions to gssapi which normally have gss_krb5_* names. Provide symbol substitution headers so that nfs-utils can be compiled both against libgssglue and the native GSSAPI implementation. Signed-off-by: Simo Sorce <simo@redhat.com>
-rw-r--r--utils/gssd/gss_util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/gssd/gss_util.h b/utils/gssd/gss_util.h
index 67b3077..aa9f778 100644
--- a/utils/gssd/gss_util.h
+++ b/utils/gssd/gss_util.h
@@ -42,4 +42,14 @@ void pgsserr(char *msg, u_int32_t maj_stat, u_int32_t min_stat,
const gss_OID mech);
int gssd_check_mechs(void);
+#ifndef HAVE_LIBGSSGLUE
+#include <gssapi/gssapi_krb5.h>
+#define gss_free_lucid_sec_context(min, ctx, ret) \
+ gss_krb5_free_lucid_sec_context(min, ret)
+
+#define gss_export_lucid_sec_context gss_krb5_export_lucid_sec_context
+#define gss_set_allowable_enctypes(min, cred, oid, num, types) \
+ gss_krb5_set_allowable_enctypes(min, cred, num, types)
+#endif
+
#endif /* _GSS_UTIL_H_ */