Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/syslogd tls.c: wrap debug-only data in #ifndef NDEBUG
details: https://anonhg.NetBSD.org/src/rev/ad3e1a8ea846
branches: trunk
changeset: 372280:ad3e1a8ea846
user: uwe <uwe%NetBSD.org@localhost>
date: Tue Nov 08 01:05:10 2022 +0000
description:
tls.c: wrap debug-only data in #ifndef NDEBUG
diffstat:
usr.sbin/syslogd/tls.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r b1d53ba43ec0 -r ad3e1a8ea846 usr.sbin/syslogd/tls.c
--- a/usr.sbin/syslogd/tls.c Tue Nov 08 01:03:27 2022 +0000
+++ b/usr.sbin/syslogd/tls.c Tue Nov 08 01:05:10 2022 +0000
@@ -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 @@
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 @@
"ST_CLOSING0",
"ST_CLOSING1",
"ST_CLOSING2"};
+#endif /* !NDEBUG */
DH *get_dh1024(void);
/* DH parameter precomputed with "openssl dhparam -C -2 1024" */
Home |
Main Index |
Thread Index |
Old Index