From 1f7c862d24da1328d53ed0980fd9abd19ad550ae Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 26 Mar 2013 12:04:06 -0400 Subject: Provide macros for non-standard gss symbols 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 --- utils/gssd/gss_util.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 +#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_ */ -- cgit