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

Function TSRemapNewInstance

plugins/authproxy/authproxy.cc:828–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826}
827
828TSReturnCode
829TSRemapNewInstance(int argc, char *argv[], void **instance, char * /* err ATS_UNUSED */, int /* errsz ATS_UNUSED */)
830{
831 AuthOptions *options;
832
833 AuthLogDebug("using authorization proxy for remapping %s -> %s", argv[0], argv[1]);
834
835 // The first two arguments are the "from" and "to" URL string. We need to
836 // skip them, but we also require that there be an option to masquerade as
837 // argv[0], so we increment the argument indexes by 1 rather than by 2.
838 argc--;
839 argv++;
840 options = AuthParseOptions(argc, (const char **)argv);
841
842 *instance = options;
843 return TS_SUCCESS;
844}
845
846void
847TSRemapDeleteInstance(void *instance)

Callers

nothing calls this directly

Calls 1

AuthParseOptionsFunction · 0.85

Tested by

no test coverage detected