MCPcopy Create free account
hub / github.com/apache/trafficserver / setup_callbacks

Function setup_callbacks

tests/tools/plugins/ssl_verify_test.cc:105–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void
106setup_callbacks(int count)
107{
108 TSCont cb = nullptr;
109 int i;
110
111 Dbg(dbg_ctl, "Setup callbacks count=%d", count);
112 for (i = 0; i < count; i++) {
113 cb = TSContCreate(&CB_server_verify, TSMutexCreate());
114 TSContDataSet(cb, (void *)static_cast<intptr_t>(i));
115 TSHttpHookAdd(TS_SSL_VERIFY_SERVER_HOOK, cb);
116 }
117 return;
118}
119
120// Called by ATS as our initialization point
121void

Callers 1

TSPluginInitFunction · 0.70

Calls 4

TSContCreateFunction · 0.85
TSMutexCreateFunction · 0.85
TSContDataSetFunction · 0.85
TSHttpHookAddFunction · 0.85

Tested by

no test coverage detected