Module Name: src Committed By: uwe Date: Tue Nov 8 01:05:10 UTC 2022
Modified Files: src/usr.sbin/syslogd: tls.c Log Message: tls.c: wrap debug-only data in #ifndef NDEBUG To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/syslogd/tls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/syslogd/tls.c diff -u src/usr.sbin/syslogd/tls.c:1.20 src/usr.sbin/syslogd/tls.c:1.21 --- src/usr.sbin/syslogd/tls.c:1.20 Sun May 15 20:37:51 2022 +++ src/usr.sbin/syslogd/tls.c Tue Nov 8 01:05:10 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: tls.c,v 1.20 2022/05/15 20:37:51 andvar Exp $ */ +/* $NetBSD: tls.c,v 1.21 2022/11/08 01:05:10 uwe Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -45,7 +45,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: tls.c,v 1.20 2022/05/15 20:37:51 andvar Exp $"); +__RCSID("$NetBSD: tls.c,v 1.21 2022/11/08 01:05:10 uwe Exp $"); #ifndef DISABLE_TLS #include <sys/stat.h> @@ -57,6 +57,7 @@ __RCSID("$NetBSD: tls.c,v 1.20 2022/05/1 static unsigned getVerifySetting(const char *x509verifystring); +#ifndef NDEBUG /* to output SSL error codes */ static const char *SSL_ERRCODE[] = { "SSL_ERROR_NONE", @@ -81,6 +82,7 @@ static const char *TLS_CONN_STATES[] = { "ST_CLOSING0", "ST_CLOSING1", "ST_CLOSING2"}; +#endif /* !NDEBUG */ DH *get_dh1024(void); /* DH parameter precomputed with "openssl dhparam -C -2 1024" */