From: Tobias Brunner Date: Mon, 1 May 2023 09:55:36 +0000 (+0200) Subject: eap-authenticator: Fix build with DEBUG_LEVEL < 1 X-Git-Tag: 5.9.11rc1~12^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=117e13e7f1f12a0168d723278e0695a28e0ab9a4;p=thirdparty%2Fstrongswan.git eap-authenticator: Fix build with DEBUG_LEVEL < 1 --- diff --git a/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c b/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c index 976ed623d3..5f60af7ca2 100644 --- a/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c +++ b/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c @@ -156,7 +156,7 @@ static eap_payload_t* server_initiate_eap(private_eap_authenticator_t *this, identification_t *id; pen_t vendor; eap_payload_t *out; - char *action; + char *action DBG_UNUSED; auth = this->ike_sa->get_auth_cfg(this->ike_sa, FALSE); @@ -641,11 +641,12 @@ METHOD(authenticator_t, process_client, status_t, } if (this->require_mutual && !this->method->is_mutual(this->method)) { /* we require mutual authentication due to EAP-only */ +#if DEBUG_LEVEL >= 1 pen_t vendor; - DBG1(DBG_IKE, "EAP-only authentication requires a mutual and " "MSK deriving EAP method, but %N is not", eap_type_names, this->method->get_type(this->method, &vendor)); +#endif return FAILED; } return SUCCESS;