OpenSSL generate_host_certificate(): Fix two error messsages
authorFabian Keil <fk@fabiankeil.de>
Mon, 15 Mar 2021 08:56:10 +0000 (09:56 +0100)
committerFabian Keil <fk@fabiankeil.de>
Mon, 15 Mar 2021 14:41:23 +0000 (15:41 +0100)
openssl.c

index 8a9824a..97cb62a 100644 (file)
--- 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;
    }