From 1988b8f65e4bfa2c9fb1fa13316f3c22ec59d298 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 7 Dec 2015 07:55:05 -0600 Subject: fixup cert.pem path override for libtls, add for nc(1) this also fixes the formatting of help for nc(1) --- apps/nc/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps') diff --git a/apps/nc/Makefile.am b/apps/nc/Makefile.am index cfcdab1..564080c 100644 --- a/apps/nc/Makefile.am +++ b/apps/nc/Makefile.am @@ -12,6 +12,11 @@ nc_LDADD += $(top_builddir)/ssl/libssl.la nc_LDADD += $(top_builddir)/tls/libtls.la AM_CPPFLAGS += -I$(top_srcdir)/apps/nc/compat +if OPENSSLDIR_DEFINED +AM_CPPFLAGS += -DDEFAULT_CA_FILE=\"@OPENSSLDIR@/cert.pem\" +else +AM_CPPFLAGS += -DDEFAULT_CA_FILE=\"$(sysconfdir)/ssl/cert.pem\" +endif nc_SOURCES = atomicio.c nc_SOURCES += netcat.c -- cgit v1.2.3-55-g6feb