summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2018-11-06 01:27:27 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2018-11-06 01:27:27 +0000
commitec73612110b4c0b7591d601a39e5dcef438c2c55 (patch)
treed8168a45a84d4491ebe2c73fd807b3fb1ea9c25b /lib
parent0e1ae23cd71d78c71d9a0aeff95901585a85e3ab (diff)
Start working towards adding feature flags (rather than anti-feature flags)
for LibreSSL. Add a (commented out) feature flag for TLSv1.3 and define the OPENSSL_NO_TLS1_3 anti-feature flag based on the feature flag. ok beck@ bluhm@ tb@
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/opensslfeatures.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libcrypto/opensslfeatures.h b/lib/libcrypto/opensslfeatures.h
index 2102b476f28..688d478dfd4 100644
--- a/lib/libcrypto/opensslfeatures.h
+++ b/lib/libcrypto/opensslfeatures.h
@@ -1,3 +1,10 @@
+/*
+ * Feature flags for LibreSSL... so you can actually tell when things
+ * are enabled, rather than not being able to tell when things are
+ * enabled (or possibly not yet not implemented, or removed!).
+ */
+/* #define LIBRESSL_HAS_TLS1_3 */
+
#define OPENSSL_THREADS
#define OPENSSL_NO_BUF_FREELISTS
@@ -93,7 +100,9 @@
/* #define OPENSSL_NO_TLS1_1_METHOD */
/* #define OPENSSL_NO_TLS1_2 */
/* #define OPENSSL_NO_TLS1_2_METHOD */
-/* #define OPENSSL_NO_TLS1_3 */
+#ifndef LIBRESSL_HAS_TLS1_3
+#define OPENSSL_NO_TLS1_3
+#endif
/* #define OPENSSL_NO_TLS1_METHOD */
/* #define OPENSSL_NO_TS */
/* #define OPENSSL_NO_UI_CONSOLE */