| 826 | } |
| 827 | |
| 828 | TSReturnCode |
| 829 | TSRemapNewInstance(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 | |
| 846 | void |
| 847 | TSRemapDeleteInstance(void *instance) |
nothing calls this directly
no test coverage detected