From 007e639b0c7c57fb0d54c11e10188057d37a0f99 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Fri, 24 Mar 2023 00:25:44 +0000 Subject: [PATCH] Don't require the TLS_ in the environment variable. It's redundant. --- tools/bin/td | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/bin/td b/tools/bin/td index 41a79f0..b67b854 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -34,17 +34,18 @@ if [ -n "$TLS_IMPL" ]; then case "$TLS_IMPL" in - "TLS_LIBRESSL") + "LIBRESSL") TLS_LIBS="-ltls -lcrypto -lssl" ;; *) echo "Unrecognized TLS implementation: ${TLS_IMPL}" echo "Consult src/include/Tls.h for supported implementations." + echo "Note that the TLS_ prefix is omitted in TLS_IMPL." exit 1 ;; esac - DEFINES="${DEFINES} -DTLS_IMPL=${TLS_IMPL}" + DEFINES="${DEFINES} -DTLS_IMPL=TLS_${TLS_IMPL}" LDFLAGS="${LDFLAGS} ${TLS_LIBS}" fi