Relocate CERT_INFO_PREFIX to ssl.c
authorFabian Keil <fk@fabiankeil.de>
Mon, 18 Jan 2021 03:31:09 +0000 (04:31 +0100)
committerFabian Keil <fk@fabiankeil.de>
Mon, 18 Jan 2021 13:30:39 +0000 (14:30 +0100)
The OpenSSL code doesn't use it.

ssl.c
ssl_common.h

diff --git a/ssl.c b/ssl.c
index abc7df6..58bd222 100644 (file)
--- 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);
index 5075ca8..bd5ce0b 100644 (file)
@@ -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