From b13529f7914eebf049fa886d2e2d9775b7e94d8a Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sat, 9 Jul 2016 12:40:22 -0500 Subject: Revert "remove DEFAULT_CA_FILE patch, since libtls handles this by default" This reverts commit 30adf9c06e8d3d7ac9e89f4b2b290567bcafa75c. --- 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 2a24d87..ed45c3f 100644 --- a/apps/nc/Makefile.am +++ b/apps/nc/Makefile.am @@ -17,6 +17,11 @@ nc_LDADD += $(abs_top_builddir)/ssl/libssl.la nc_LDADD += $(abs_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