-#if 0
-struct shttpd_ctx *
-shttpd_init2(const char *config_file, char *names[], char *values[], size_t n)
-{
- size_t i;
-
- for (i = 0; i < n; i++)
- set_option(names[i], values[i]);
-
- return (init_ctx(config_file, 0, NULL));
-}
-#endif
-
-void
-shttpd_protect_uri(struct shttpd_ctx *ctx, const char *uri, const char *file)
-{
- struct uri_auth *auth;
-
- if ((auth = malloc(sizeof(*auth))) != NULL) {
- auth->uri = my_strdup(uri);
- auth->file_name = my_strdup(file);
- auth->uri_len = strlen(uri);
- LL_ADD(&ctx->uri_auths, &auth->link);
- }
-}
-