From: Tobias Brunner Date: Mon, 1 May 2023 08:46:28 +0000 (+0200) Subject: auth-cfg: Fix build with DEBUG_LEVEL < 1 X-Git-Tag: 5.9.11rc1~12^2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b59031cc3d827249d9f0ffb2316b40e9582f7e9;p=thirdparty%2Fstrongswan.git auth-cfg: Fix build with DEBUG_LEVEL < 1 --- diff --git a/src/libstrongswan/credentials/auth_cfg.c b/src/libstrongswan/credentials/auth_cfg.c index 8c0e9eaff7..2bff538d6b 100644 --- a/src/libstrongswan/credentials/auth_cfg.c +++ b/src/libstrongswan/credentials/auth_cfg.c @@ -821,7 +821,6 @@ METHOD(auth_cfg_t, complies, bool, signature_params_t *ike_scheme = NULL, *scheme = NULL; u_int strength = 0; auth_rule_t t1, t2; - char *key_type; void *value; e1 = constraints->create_enumerator(constraints); @@ -1110,6 +1109,8 @@ METHOD(auth_cfg_t, complies, bool, * public key strength */ if (success && strength) { + char *key_type DBG_UNUSED; + e2 = create_enumerator(this); while (e2->enumerate(e2, &t2, &strength)) {