From e36fd79f212a4fbcb69ef6fa6add4d06e52956b5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 1 Jun 2021 20:35:49 +0000 Subject: Make stuff build Still not working: we need to add servername to the storage --- src/stls/stls_server_init_and_handshake.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stls') diff --git a/src/stls/stls_server_init_and_handshake.c b/src/stls/stls_server_init_and_handshake.c index 2cc9585..2a8c235 100644 --- a/src/stls/stls_server_init_and_handshake.c +++ b/src/stls/stls_server_init_and_handshake.c @@ -47,12 +47,12 @@ struct tls *stls_server_init_and_handshake (int const *fds, tain_t const *tto, u if (kequal != 8) { char certvar[len - kequal + 10] ; - memcpy(certvar, "CERTFILE:", 9 ; + memcpy(certvar, "CERTFILE:", 9) ; memcpy(certvar + 9, *envp + 8, kequal - 8) ; certvar[kequal + 1] = 0 ; x = getenv(certvar) ; if (!x) - strerr_dief3x("environment variable KEYFILE:", certvar + 9, " not paired with the corresponding CERTFILE") ; + strerr_dief3x(96, "environment variable KEYFILE:", certvar + 9, " not paired with the corresponding CERTFILE") ; else if (tls_config_add_keypair_file(cfg, x, *envp + kequal + 1) < 0) diecfg(cfg, "tls_config_add_keypair_file") ; } -- cgit v1.2.3