From f2be4cfb0e98db4cf6fcf33f3f1efadabe399887 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 18 Jan 2021 04:31:09 +0100 Subject: [PATCH] Relocate CERT_INFO_PREFIX to ssl.c The OpenSSL code doesn't use it. --- ssl.c | 1 + ssl_common.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl.c b/ssl.c index abc7df68..58bd222c 100644 --- a/ssl.c +++ b/ssl.c @@ -1740,6 +1740,7 @@ static int ssl_verify_callback(void *csp_void, mbedtls_x509_crt *crt, { char buf[CERT_INFO_BUF_SIZE]; char *encoded_text; +#define CERT_INFO_PREFIX "" mbedtls_x509_crt_info(buf, sizeof(buf), CERT_INFO_PREFIX, crt); encoded_text = html_encode(buf); diff --git a/ssl_common.h b/ssl_common.h index 5075ca8e..bd5ce0b6 100644 --- a/ssl_common.h +++ b/ssl_common.h @@ -45,7 +45,6 @@ #define CERT_PARAM_COUNTRY_FCODE "C" #define CERT_PARAM_COUNTRY_CODE "CZ" #define CERT_SUBJECT_PASSWORD "" -#define CERT_INFO_PREFIX "" /* * Properties of cert for generating -- 2.39.2