Called by ATS as our initialization point
| 415 | |
| 416 | // Called by ATS as our initialization point |
| 417 | void |
| 418 | TSPluginInit(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 | } |
nothing calls this directly
no test coverage detected