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

Function TSPluginInit

tests/tools/plugins/ssl_hook_test.cc:417–446  ·  view source on GitHub ↗

Called by ATS as our initialization point

Source from the content-addressed store, hash-verified

415
416// Called by ATS as our initialization point
417void
418TSPluginInit(int argc, const char *argv[])
419{
420 TSPluginRegistrationInfo info;
421 info.plugin_name = const_cast<char *>("SSL hooks test");
422 info.vendor_name = const_cast<char *>("yahoo");
423 info.support_email = const_cast<char *>("shinrich@yahoo-inc.com");
424 if (TSPluginRegister(&info) != TS_SUCCESS) {
425 TSError("[%s] Plugin registration failed", PN);
426 }
427
428 int preaccept_count = 0;
429 int client_hello_count = 0;
430 int client_hello_count_immediate = 0;
431 int sni_count = 0;
432 int cert_count = 0;
433 int cert_count_immediate = 0;
434 int preaccept_count_delay = 0;
435 int close_count = 0;
436 int out_start_count = 0;
437 int out_start_delay_count = 0;
438 int out_close_count = 0;
439 parse_callbacks(argc, argv, preaccept_count, client_hello_count, client_hello_count_immediate, sni_count, cert_count,
440 cert_count_immediate, preaccept_count_delay, close_count, out_start_count, out_start_delay_count,
441 out_close_count);
442 setup_callbacks(nullptr, preaccept_count, client_hello_count, client_hello_count_immediate, sni_count, cert_count,
443 cert_count_immediate, preaccept_count_delay, close_count, out_start_count, out_start_delay_count,
444 out_close_count);
445 return;
446}

Callers

nothing calls this directly

Calls 4

TSPluginRegisterFunction · 0.85
parse_callbacksFunction · 0.70
setup_callbacksFunction · 0.70
TSErrorFunction · 0.50

Tested by

no test coverage detected