From: Tobias Brunner Date: Mon, 1 May 2023 09:57:16 +0000 (+0200) Subject: pubkey-authenticator: Fix build with DEBUG_LEVEL < 1 X-Git-Tag: 5.9.11rc1~12^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=675082114cab5335028f26906a4eff645f5bdf00;p=thirdparty%2Fstrongswan.git pubkey-authenticator: Fix build with DEBUG_LEVEL < 1 --- diff --git a/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c b/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c index 1f87189623..4f83dad10c 100644 --- a/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c +++ b/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c @@ -371,11 +371,13 @@ static status_t sign_signature_auth(private_pubkey_authenticator_t *this, { if (params->scheme == SIGN_RSA_EMSA_PSS) { +#if DEBUG_LEVEL >= 1 rsa_pss_params_t *pss = params->params; DBG1(DBG_IKE, "authentication of '%Y' (myself) with %N_%N_SALT_%zd " "%s", id, signature_scheme_names, params->scheme, hash_algorithm_short_names_upper, pss->hash, pss->salt_len, status == SUCCESS ? "successful" : "failed"); +#endif } else { @@ -573,7 +575,7 @@ METHOD(authenticator_t, process, status_t, key_type_t key_type = KEY_ECDSA; signature_params_t *params; status_t status = NOT_FOUND; - const char *reason = "unsupported"; + const char *reason DBG_UNUSED = "unsupported"; bool online; auth_payload = (auth_payload_t*)message->get_payload(message, PLV2_AUTH); @@ -647,10 +649,12 @@ METHOD(authenticator_t, process, status_t, } else if (params->scheme == SIGN_RSA_EMSA_PSS) { +#if DEBUG_LEVEL >= 1 rsa_pss_params_t *pss = params->params; DBG1(DBG_IKE, "authentication of '%Y' with %N_%N_SALT_%zd " "successful", id, signature_scheme_names, params->scheme, hash_algorithm_short_names_upper, pss->hash, pss->salt_len); +#endif } else {