From 81f1eb11450d376cdabf33683497ddbe50bd0497 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 15 Mar 2021 09:56:10 +0100 Subject: [PATCH] OpenSSL generate_host_certificate(): Fix two error messsages --- openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2