]> git.ipfire.org Git - thirdparty/curl.git/commit
gnutls: fix build with --disable-verbose
authorBaruch Siach <baruch@tkos.co.il>
Mon, 11 Dec 2023 18:45:01 +0000 (20:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 16 Dec 2023 21:06:21 +0000 (22:06 +0100)
commitaf520ac9fec7d88e942f05fdcd90704adb9fa566
treeb23944c385c238ae719c72d5eb836f4564b212b3
parent423645a1ef34526d424e48d23f573e7a5137c88f
gnutls: fix build with --disable-verbose

infof() parameters must be defined event with --disable-verbose since
commit dac293cfb702 ("lib: apache style infof and trace
macros/functions").

Move also 'ptr' definition under !CURL_DISABLE_VERBOSE_STRINGS.

Fixes the following build failure:

In file included from ../lib/sendf.h:29,
                 from vtls/gtls.c:44:
vtls/gtls.c: In function 'Curl_gtls_verifyserver':
vtls/gtls.c:841:34: error: 'version' undeclared (first use in this function); did you mean 'session'?
  841 |         gnutls_protocol_get_name(version), ptr);
      |                                  ^~~~~~~

Closes #12505
lib/vtls/gtls.c