Provide OPENSSL_TLS_SECURITY_LEVEL define
authortb <tb@openbsd.org>
Tue, 28 Jun 2022 20:36:55 +0000 (20:36 +0000)
committertb <tb@openbsd.org>
Tue, 28 Jun 2022 20:36:55 +0000 (20:36 +0000)
ok beck jsing sthen

lib/libssl/tls1.h

index 547fb86..aa05f37 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls1.h,v 1.51 2022/02/05 18:18:18 tb Exp $ */
+/* $OpenBSD: tls1.h,v 1.52 2022/06/28 20:36:55 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
 extern "C" {
 #endif
 
+#if defined(LIBRESSL_INTERNAL)
+#ifndef OPENSSL_TLS_SECURITY_LEVEL
+#define OPENSSL_TLS_SECURITY_LEVEL 1
+#endif
+#endif
+
 #define TLS1_ALLOW_EXPERIMENTAL_CIPHERSUITES   0
 
 #if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL)