From 61459e9930995a491dcac51019d01813efc495ce Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 29 Jun 2017 21:29:35 +0000 Subject: Fix error messages in stls_s6tls?.c when setting key file --- src/stls/stls_s6tlsc.c | 2 +- src/stls/stls_s6tlsd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stls') diff --git a/src/stls/stls_s6tlsc.c b/src/stls/stls_s6tlsc.c index 87a45ac..9a6dcc3 100644 --- a/src/stls/stls_s6tlsc.c +++ b/src/stls/stls_s6tlsc.c @@ -52,7 +52,7 @@ int stls_s6tlsc (char const *const *argv, char const *const *envp, tain_t const x = env_get2(envp, "KEYFILE") ; if (!x) strerr_dienotset(100, "KEYFILE") ; if (tls_config_set_key_file(cfg, x) < 0) - diecfg(cfg, "tls_config_set_cert_file") ; + diecfg(cfg, "tls_config_set_key_file") ; } if (tls_config_set_ciphers(cfg, "secure") < 0) diff --git a/src/stls/stls_s6tlsd.c b/src/stls/stls_s6tlsd.c index 07446e7..a791e89 100644 --- a/src/stls/stls_s6tlsd.c +++ b/src/stls/stls_s6tlsd.c @@ -35,7 +35,7 @@ int stls_s6tlsd (char const *const *argv, char const *const *envp, tain_t const x = env_get2(envp, "KEYFILE") ; if (!x) strerr_dienotset(100, "KEYFILE") ; if (tls_config_set_key_file(cfg, x) < 0) - diecfg(cfg, "tls_config_set_cert_file") ; + diecfg(cfg, "tls_config_set_key_file") ; if (tls_config_set_ciphers(cfg, "secure") < 0) diecfg(cfg, "tls_config_set_ciphers") ; -- cgit v1.2.3