Enable libeap debugging iff GSSEAP_DEBUG defined
authorLuke Howard <lukeh@padl.com>
Mon, 25 Oct 2010 22:35:20 +0000 (09:35 +1100)
committerLuke Howard <lukeh@padl.com>
Mon, 25 Oct 2010 22:35:20 +0000 (09:35 +1100)
init_sec_context.c

index 25f3ae5..a195815 100644 (file)
@@ -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);