We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93e4433 commit 437e7ecCopy full SHA for 437e7ec
lib/tls/tls.cc
@@ -12,7 +12,15 @@
12
#include <tls.h>
13
#include <token.h>
14
15
-using Debug = ConditionalDebug<false, "TLS">;
+constexpr bool DebugTLS =
16
+#ifdef DEBUG_TLS
17
+ DEBUG_TLS
18
+#else
19
+ false
20
+#endif
21
+ ;
22
+
23
+using Debug = ConditionalDebug<DebugTLS, "TLS">;
24
using namespace CHERI;
25
26
/**
lib/tls/xmake.lua
@@ -1,3 +1,5 @@
1
+debugOption("TLS")
2
3
option("tls-rsa")
4
set_default(true)
5
set_description("Enable RSA (in addition to ECDSA) for TLS")
@@ -12,6 +14,7 @@ option("tls-sha384")
compartment("TLS")
+ add_rules("cheriot.component-debug")
add_options("tls-rsa", "tls-sha384")
set_default(false)
-- TLS API
0 commit comments