[Openvpn-devel,OSSL,3.0] Fix function name in DH error message

Message ID 20211105145056.2907568-1-arne@rfc2549.org
State Accepted
Headers show
Series
  • [Openvpn-devel,OSSL,3.0] Fix function name in DH error message
Related show

Commit Message

Arne Schwabe Nov. 5, 2021, 2:50 p.m.
This was noticed by Steffan.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
---
 src/openvpn/ssl_openssl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Gert Doering Nov. 5, 2021, 3:10 p.m. | #1
Acked-by: Gert Doering <gert@greenie.muc.de>

"Obviously correct" :-)

Your patch has been applied to the master branch.

commit f1dd638ca6acf35f0913f4e3d66451a70891c3de
Author: Arne Schwabe
Date:   Fri Nov 5 15:50:56 2021 +0100

     Fix function name in DH error message

     Signed-off-by: Arne Schwabe <arne@rfc2549.org>
     Acked-by: Gert Doering <gert@greenie.muc.de>
     Message-Id: <20211105145056.2907568-1-arne@rfc2549.org>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23097.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c
index 61cfd7ccf..ab9a8f347 100644
--- a/src/openvpn/ssl_openssl.c
+++ b/src/openvpn/ssl_openssl.c
@@ -684,7 +684,7 @@  tls_ctx_load_dh_params(struct tls_root_ctx *ctx, const char *dh_file,
     }
     if (!SSL_CTX_set0_tmp_dh_pkey(ctx->ctx, dh))
     {
-        crypto_msg(M_FATAL, "SSL_CTX_set_tmp_dh");
+        crypto_msg(M_FATAL, "SSL_CTX_set0_tmp_dh_pkey");
     }
 
     msg(D_TLS_DEBUG_LOW, "Diffie-Hellman initialized with %d bit key",