aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/tsi
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-03-01 21:56:38 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-03-01 21:56:38 -0800
commitfaa8480a399061cef95aef394b2e1977bdef4b4a (patch)
treed00093c3b13072bcff5f60c1989e9af01fa3691e /src/core/tsi
parent3ec73cec8f38339af7b430932e92492bac0e27dc (diff)
Tracer registration.
First: ugh. Second: allow tracer global variables to be registered and then parsed out of a configuration environment variable. Expose TSI trace config variable directly to ease this a little.
Diffstat (limited to 'src/core/tsi')
-rw-r--r--src/core/tsi/transport_security.c4
-rw-r--r--src/core/tsi/transport_security_interface.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/core/tsi/transport_security.c b/src/core/tsi/transport_security.c
index 04b30004fc..c8c74c5de5 100644
--- a/src/core/tsi/transport_security.c
+++ b/src/core/tsi/transport_security.c
@@ -40,10 +40,6 @@
int tsi_tracing_enabled = 0;
-void tsi_enable_tracing() {
- tsi_tracing_enabled = 1;
-}
-
/* --- Utils. --- */
char* tsi_strdup(const char* src) {
diff --git a/src/core/tsi/transport_security_interface.h b/src/core/tsi/transport_security_interface.h
index 33a19bef0d..4e7ad00421 100644
--- a/src/core/tsi/transport_security_interface.h
+++ b/src/core/tsi/transport_security_interface.h
@@ -63,8 +63,8 @@ const char* tsi_result_to_string(tsi_result result);
/* --- tsi tracing --- */
-/* Call this function before any other tsi function to avoid races. */
-void tsi_enable_tracing(void);
+/* set this early to avoid races */
+extern int tsi_tracing_enabled;
/* --- tsi_frame_protector object ---