From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 18 Jan 2021 03:31:09 +0000 (+0100)
Subject: Relocate CERT_INFO_PREFIX to ssl.c
X-Git-Tag: v_3_0_30~89
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/faq/@default-cgi@/static/coding.html?a=commitdiff_plain;h=f2be4cfb0e98db4cf6fcf33f3f1efadabe399887;p=privoxy.git

Relocate CERT_INFO_PREFIX to ssl.c

The OpenSSL code doesn't use it.
---

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