From f0a8db9f0db1674c5b2465c91eb8e04a46ac37ec Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 26 Oct 2010 09:35:20 +1100 Subject: [PATCH] Enable libeap debugging iff GSSEAP_DEBUG defined --- init_sec_context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init_sec_context.c b/init_sec_context.c index 25f3ae5..a195815 100644 --- a/init_sec_context.c +++ b/init_sec_context.c @@ -202,7 +202,9 @@ static struct eapol_callbacks gssEapPolicyCallbacks = { peerNotifyPending, }; +#ifdef GSSEAP_DEBUG extern int wpa_debug_level; +#endif static OM_uint32 peerConfigInit(OM_uint32 *minor, @@ -224,7 +226,9 @@ peerConfigInit(OM_uint32 *minor, GSSEAP_KRB_INIT(&krbContext); eapPeerConfig->fragment_size = 1024; +#ifdef GSSEAP_DEBUG wpa_debug_level = 0; +#endif assert(cred->name != GSS_C_NO_NAME); -- 2.1.4