]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
crypto-tester: Fix build with DEBUG_LEVEL < 1
authorTobias Brunner <tobias@strongswan.org>
Mon, 1 May 2023 08:35:05 +0000 (10:35 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 8 May 2023 12:06:43 +0000 (14:06 +0200)
src/libstrongswan/crypto/crypto_tester.c

index b87c4c73a329a60b29055ad33f7f437885d3cc1c..5cd6ef4d09ee335f74075e94b1670f406f84901f 100644 (file)
@@ -110,6 +110,7 @@ struct private_crypto_tester_t {
        int bench_size;
 };
 
+#if DEBUG_LEVEL >= 1
 /**
  * Get the name of a test vector, if available
  */
@@ -125,6 +126,7 @@ static const char* get_name(void *sym)
 #endif
        return "unknown";
 }
+#endif
 
 #if defined(CLOCK_THREAD_CPUTIME_ID) && defined(HAVE_CLOCK_GETTIME)