fixup cert.pem path override for libtls, add for nc(1)

this also fixes the formatting of help for nc(1)
This commit is contained in:
Brent Cook
2015-12-07 07:55:05 -06:00
parent 905e2a3b80
commit 1988b8f65e
3 changed files with 49 additions and 21 deletions

View File

@@ -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