Skip to content

Commit

Permalink
enable libtls by default
Browse files Browse the repository at this point in the history
The API/ABI for the LibreSSL 2.1.x series is now fixed, so we can safely
enable libtls it by default. This is useful for new OpenNTPD and
OpenSMTPD releases as well.

ok deraadt@ beck@ sthen@
  • Loading branch information
busterb committed Mar 19, 2015
1 parent 1d62b3b commit dd646a3
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 26 deletions.
6 changes: 1 addition & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ SUBDIRS = crypto ssl tls include apps tests man
ACLOCAL_AMFLAGS = -I m4

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcrypto.pc libssl.pc openssl.pc

if ENABLE_LIBTLS
pkgconfig_DATA += libtls.pc
endif
pkgconfig_DATA = libcrypto.pc libssl.pc libtls.pc openssl.pc

EXTRA_DIST = README README.windows VERSION config scripts
6 changes: 1 addition & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,6 @@ AM_CONDITIONAL([HOST_ASM_ELF_X86_64],
AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64],
[test "x$HOST_ABI" = "xmacosx" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"])

AC_ARG_ENABLE([libtls],
AS_HELP_STRING([--enable-libtls], [Enable building the libtls library]))
AM_CONDITIONAL([ENABLE_LIBTLS], [test "x$enable_libtls" = xyes])
AM_COND_IF([ENABLE_LIBTLS], [AC_CONFIG_FILES([libtls.pc])])

LT_INIT

AC_CONFIG_FILES([
Expand All @@ -329,6 +324,7 @@ AC_CONFIG_FILES([
man/Makefile
libcrypto.pc
libssl.pc
libtls.pc
openssl.pc
])

Expand Down
2 changes: 1 addition & 1 deletion dist-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ for ARCH in X86 X64; do

echo Building for $HOST

CC=$HOST-gcc ./configure --host=$HOST --enable-libtls
CC=$HOST-gcc ./configure --host=$HOST
make clean
PATH=$PATH:/usr/$HOST/sys-root/mingw/bin \
make -j 4 check
Expand Down
2 changes: 1 addition & 1 deletion dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ set -e

rm -f man/*.1 man/*.3
./autogen.sh
./configure --enable-libtls
./configure
make distcheck
2 changes: 1 addition & 1 deletion gen-coverage-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ find -name '*.gcda' -o -name '*.gcno' -delete
rm -fr $DESTDIR

echo "Configuring to build with code coverage support"
./configure --enable-libtls CFLAGS='-O0 -fprofile-arcs -ftest-coverage'
./configure CFLAGS='-O0 -fprofile-arcs -ftest-coverage'

echo "Running all code paths"
make clean
Expand Down
2 changes: 0 additions & 2 deletions include/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ noinst_HEADERS += sys/times.h
noinst_HEADERS += sys/types.h
noinst_HEADERS += sys/uio.h

if ENABLE_LIBTLS
include_HEADERS = tls.h
endif
4 changes: 2 additions & 2 deletions scripts/travis
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
./autogen.sh

if [ "x$ARCH" = "xnative" ]; then
./configure --enable-libtls
./configure
if [ `uname` = "Darwin" ]; then
# OS X runs out of resources if we run 'make -j check'
make check
Expand All @@ -28,6 +28,6 @@ else
export PATH=$PATH:/opt/$ARCH/bin
fi

./configure --host=$CPU-w64-mingw32 --enable-libtls
./configure --host=$CPU-w64-mingw32
make -j
fi
3 changes: 0 additions & 3 deletions tls/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include $(top_srcdir)/Makefile.am.common

if ENABLE_LIBTLS
lib_LTLIBRARIES = libtls.la

EXTRA_DIST = VERSION
Expand All @@ -20,5 +19,3 @@ noinst_HEADERS = tls_internal.h
if !HAVE_STRSEP
libtls_la_SOURCES += strsep.c
endif

endif
6 changes: 0 additions & 6 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,7 @@ echo "copying manpages"
$CP $openssl_app_src/openssl.1 .
echo "dist_man_MANS += openssl.1" >> Makefile.am
$CP $libtls_src/tls_init.3 .
echo "if ENABLE_LIBTLS" >> Makefile.am
echo "dist_man_MANS += tls_init.3" >> Makefile.am
echo "endif" >> Makefile.am

# convert remaining POD manpages
for i in `ls -1 $libssl_src/src/doc/crypto/*.pod | sort`; do
Expand All @@ -328,23 +326,19 @@ echo "copying manpages"
echo " ln -f \$(DESTDIR)\$(mandir)/man3/$1 \\" >> Makefile.am
echo " \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
done
echo "if ENABLE_LIBTLS" >> Makefile.am
for i in $TLS_MLINKS; do
IFS=","; set $i; unset IFS
echo " ln -f \$(DESTDIR)\$(mandir)/man3/$1 \\" >> Makefile.am
echo " \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
done
echo "endif" >> Makefile.am
echo "" >> Makefile.am
echo "uninstall-local:" >> Makefile.am
for i in $SSL_MLINKS; do
IFS=","; set $i; unset IFS
echo " -rm -f \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
done
echo "if ENABLE_LIBTLS" >> Makefile.am
for i in $TLS_MLINKS; do
IFS=","; set $i; unset IFS
echo " rm -f \$(DESTDIR)\$(mandir)/man3/$2" >> Makefile.am
done
echo "endif" >> Makefile.am
)

0 comments on commit dd646a3

Please sign in to comment.