]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
auth-cfg: Fix build with DEBUG_LEVEL < 1
authorTobias Brunner <tobias@strongswan.org>
Mon, 1 May 2023 08:46:28 +0000 (10:46 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 8 May 2023 12:06:43 +0000 (14:06 +0200)
src/libstrongswan/credentials/auth_cfg.c

index 8c0e9eaff753e737e042b7d98ccb2a491bf5e70d..2bff538d6b5ad03ae57ff4e9fd343701953069ca 100644 (file)
@@ -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))
                {