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

Function TSPluginInit

tests/tools/plugins/ssl_verify_test.cc:121–136  ·  view source on GitHub ↗

Called by ATS as our initialization point

Source from the content-addressed store, hash-verified

119
120// Called by ATS as our initialization point
121void
122TSPluginInit(int argc, const char *argv[])
123{
124 TSPluginRegistrationInfo info;
125 info.plugin_name = const_cast<char *>("SSL verify server test");
126 info.vendor_name = const_cast<char *>("apache");
127 info.support_email = const_cast<char *>("shinrich@apache.org");
128 if (TSPluginRegister(&info) != TS_SUCCESS) {
129 TSError("[%s] Plugin registration failed", PN);
130 }
131
132 int verify_count = 0;
133 parse_callbacks(argc, argv, verify_count);
134 setup_callbacks(verify_count);
135 return;
136}

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