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

Function setup_callbacks

tests/tools/plugins/ssl_client_verify_test.cc:159–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void
160setup_callbacks(int count)
161{
162 TSCont cb = nullptr;
163 int i;
164
165 Dbg(dbg_ctl, "Setup callbacks count=%d", count);
166 for (i = 0; i < count; i++) {
167 cb = TSContCreate(&CB_client_verify, TSMutexCreate());
168 TSContDataSet(cb, (void *)static_cast<intptr_t>(i));
169 TSHttpHookAdd(TS_SSL_VERIFY_CLIENT_HOOK, cb);
170 }
171 return;
172}
173
174// Called by ATS as our initialization point
175void

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