This is an automated email from the ASF dual-hosted git repository. rrm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 6db1ea5 Removes unused TSConfig usage in verify_cert example 6db1ea5 is described below commit 6db1ea53f17f3221b432bc64318971808cdf2a2d Author: Randall Meyer <randallme...@yahoo.com> AuthorDate: Tue May 7 15:17:32 2019 -0700 Removes unused TSConfig usage in verify_cert example --- example/verify_cert/verify_cert.cc | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/example/verify_cert/verify_cert.cc b/example/verify_cert/verify_cert.cc index a52002e..81ec622 100644 --- a/example/verify_cert/verify_cert.cc +++ b/example/verify_cert/verify_cert.cc @@ -1,11 +1,8 @@ /** @file - SSL Preaccept test plugin. + Verify certificate test plugin. - Implements blind tunneling based on the client IP address - The client ip addresses are specified in the plugin's - config file as an array of IP addresses or IP address ranges under the - key "client-blind-tunnel" + Example showing how to use TS_SSL_VERIFY_CLIENT_HOOK @section license License @@ -30,12 +27,7 @@ #include <memory.h> #include <cinttypes> #include <ts/ts.h> -#include <tsconfig/TsValue.h> #include <openssl/ssl.h> -#include <getopt.h> - -using ts::config::Configuration; -using ts::config::Value; #define PLUGIN_NAME "verify_cert" #define PCP "[" PLUGIN_NAME "] " @@ -92,11 +84,7 @@ TSPluginInit(int argc, const char *argv[]) { bool success = false; TSPluginRegistrationInfo info; - TSCont cb_cert = nullptr; // Certificate callback continuation - static const struct option longopt[] = { - {const_cast<char *>("config"), required_argument, nullptr, 'c'}, - {nullptr, no_argument, nullptr, '\0'}, - }; + TSCont cb_cert = nullptr; // Certificate callback continuation info.plugin_name = PLUGIN_NAME; info.vendor_name = "Apache Software Foundation";