mbedtls: fix incorrect macro condition mbed_dump_cert_info

Follow-up to 88cae14550
This commit is contained in:
Jan Venekamp 2024-08-20 20:33:59 +02:00 committed by Daniel Stenberg
parent 69b50017a4
commit 7ca719deef
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -488,7 +488,7 @@ add_ciphers:
static void
mbed_dump_cert_info(struct Curl_easy *data, const mbedtls_x509_crt *crt)
{
#if !defined(CURL_DISABLE_VERBOSE_STRINGS) || \
#if defined(CURL_DISABLE_VERBOSE_STRINGS) || \
(MBEDTLS_VERSION_NUMBER >= 0x03000000 && defined(MBEDTLS_X509_REMOVE_INFO))
(void) data, (void) crt;
#else
@ -497,7 +497,7 @@ mbed_dump_cert_info(struct Curl_easy *data, const mbedtls_x509_crt *crt)
if(buffer && mbedtls_x509_crt_info(buffer, bufsize, " ", crt) > 0) {
infof(data, "Server certificate:");
for(p = buffer; *p; *p && p++) {
for(p = buffer; *p; p += *p != '\0') {
size_t s = strcspn(p, "\n");
infof(data, "%.*s", (int) s, p);
p += s;