From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 15 Mar 2021 08:56:10 +0000 (+0100)
Subject: OpenSSL generate_host_certificate(): Fix two error messsages
X-Git-Tag: v_3_0_33~105^2~1
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/man-page/static/@default-cgi@send-stylesheet?a=commitdiff_plain;h=81f1eb11450d376cdabf33683497ddbe50bd0497;p=privoxy.git

OpenSSL generate_host_certificate(): Fix two error messsages
---

diff --git a/openssl.c b/openssl.c
index 8a9824ae..97cb62a4 100644
--- a/openssl.c
+++ b/openssl.c
@@ -1861,7 +1861,7 @@ static int generate_host_certificate(struct client_state *csp)
    subject_name = X509_NAME_new();
    if (!subject_name)
    {
-      log_ssl_errors(LOG_LEVEL_ERROR, "RSA key memory allocation failure");
+      log_ssl_errors(LOG_LEVEL_ERROR, "X509 memory allocation failure");
       ret = -1;
       goto exit;
    }
@@ -1898,7 +1898,7 @@ static int generate_host_certificate(struct client_state *csp)
    {
       log_ssl_errors(LOG_LEVEL_ERROR,
          "X509 subject name (code: %s, val: %s) error",
-         CERT_PARAM_COUNTRY_FCODE, csp->http->host);
+         CERT_PARAM_COUNTRY_FCODE, CERT_PARAM_COUNTRY_CODE);
       ret = -1;
       goto exit;
    }