initial ocspcheck integration
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
include $(top_srcdir)/Makefile.am.common
|
||||
|
||||
SUBDIRS = openssl nc
|
||||
SUBDIRS = ocspcheck openssl nc
|
||||
|
||||
EXTRA_DIST = CMakeLists.txt
|
||||
|
24
apps/ocspcheck/CMakeLists.txt
Normal file
24
apps/ocspcheck/CMakeLists.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
include_directories(
|
||||
.
|
||||
./compat
|
||||
../../include
|
||||
../../include/compat
|
||||
)
|
||||
|
||||
set(
|
||||
OCSPCHECK_SRC
|
||||
http.c
|
||||
ocspcheck.c
|
||||
)
|
||||
|
||||
if(NOT "${OPENSSLDIR}" STREQUAL "")
|
||||
add_definitions(-DDEFAULT_CA_FILE=\"${OPENSSLDIR}/cert.pem\")
|
||||
else()
|
||||
add_definitions(-DDEFAULT_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\")
|
||||
endif()
|
||||
|
||||
add_executable(ocspcheck ${OCSPCHECK_SRC})
|
||||
target_link_libraries(ocspcheck tls ${OPENSSL_LIBS})
|
||||
|
||||
install(TARGETS ocspcheck DESTINATION bin)
|
||||
install(FILES ocspcheck.8 DESTINATION share/man/man8)
|
15
apps/ocspcheck/Makefile.am
Normal file
15
apps/ocspcheck/Makefile.am
Normal file
@@ -0,0 +1,15 @@
|
||||
include $(top_srcdir)/Makefile.am.common
|
||||
|
||||
bin_PROGRAMS = ocspcheck
|
||||
|
||||
EXTRA_DIST = ocspcheck.8
|
||||
EXTRA_DIST += CMakeLists.txt
|
||||
|
||||
ocspcheck_LDADD = $(abs_top_builddir)/crypto/libcrypto.la
|
||||
ocspcheck_LDADD += $(abs_top_builddir)/ssl/libssl.la
|
||||
ocspcheck_LDADD += $(abs_top_builddir)/tls/libtls.la
|
||||
ocspcheck_LDADD += $(PLATFORM_LDADD) $(PROG_LDADD)
|
||||
|
||||
ocspcheck_SOURCES = http.c
|
||||
ocspcheck_SOURCES += ocspcheck.c
|
||||
noinst_HEADERS = http.h
|
Reference in New Issue
Block a user