X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=blobdiff_plain;f=mech_eap%2Fimport_sec_context.c;h=1b9c0ad238d55861c8df441909176750a843e60d;hp=9d6ae3d0cf3eef34cbe467dfdf127a24628f29d5;hb=1cf53a2a7268e5153b6f7f2a928aa1fe7ea285df;hpb=54fa5230688cd4ecef74aaef6ebb3193e24f47f8 diff --git a/mech_eap/import_sec_context.c b/mech_eap/import_sec_context.c index 9d6ae3d..1b9c0ad 100644 --- a/mech_eap/import_sec_context.c +++ b/mech_eap/import_sec_context.c @@ -48,6 +48,7 @@ } \ } while (0) +#ifdef GSSEAP_ENABLE_ACCEPTOR static OM_uint32 gssEapImportPartialContext(OM_uint32 *minor, unsigned char **pBuf, @@ -113,6 +114,7 @@ gssEapImportPartialContext(OM_uint32 *minor, return GSS_S_COMPLETE; } +#endif static OM_uint32 importMechanismOid(OM_uint32 *minor, @@ -304,6 +306,7 @@ gssEapImportContext(OM_uint32 *minor, if (GSS_ERROR(major)) return major; +#ifdef GSSEAP_ENABLE_ACCEPTOR /* * The partial context should only be expected for unestablished * acceptor contexts. @@ -318,6 +321,7 @@ gssEapImportContext(OM_uint32 *minor, #ifdef GSSEAP_DEBUG assert(remain == 0); #endif +#endif major = GSS_S_COMPLETE; *minor = 0;