opts->use_host_err_chk   = HTTPD_CONF_USE_HOST_ERR_CHK; opts->use_x2_hdr_chk     = HTTPD_CONF_USE_x2_HDR_CHK;
opts->use_internal_host_chk = HTTPD_CONF_USE_INTERNAL_HOST_CHK; opts->use_host_chk       = HTTPD_CONF_USE_HOST_CHK; opts->use_hdrs_no_x2     = HTTPD_CONF_USE_HDRS_NO_x2; opts->use_hdrs_non_spc   = HTTPD_CONF_USE_HDRS_NON_SPC; opts->use_hdrs_err_411   = HTTPD_CONF_USE_HDRS_ERR_411;
int httpd_policy_init(Httpd_opts *beg, Httpd_policy_opts *opts){   if (!opt_policy_init(beg->s, opts->s))    return (FALSE);  ASSERT(opts->s->beg == beg->s);    /* do all, then check ... so we don't have to unwind */  opts->document_root     = vstr_make_base(NULL);  opts->server_name       = vstr_make_base(NULL);  opts->dir_filename      = vstr_make_base(NULL);  opts->mime_types_def_ct = vstr_make_base(NULL);  opts->mime_types_main   = vstr_make_base(NULL);  opts->mime_types_xtra   = vstr_make_base(NULL);  opts->default_hostname  = vstr_make_base(NULL);  opts->req_conf_dir      = vstr_make_base(NULL);  opts->req_err_dir       = vstr_make_base(NULL);  opts->auth_realm        = vstr_make_base(NULL);  opts->auth_token        = vstr_make_base(NULL);    if (!opts->document_root     ||      !opts->server_name       ||      !opts->dir_filename      ||      !opts->mime_types_def_ct ||      !opts->mime_types_main   ||      !opts->mime_types_xtra   ||      !opts->default_hostname  ||      !opts->req_conf_dir      ||      !opts->req_err_dir       ||      !opts->auth_realm        ||      !opts->auth_token        ||      FALSE)  {    httpd_policy_exit(opts);    return (FALSE);  }  opts->mime_types->ref = NULL;  opts->mime_types->def_type_vs1 = NULL;  opts->mime_types->def_type_pos = 0;  opts->mime_types->def_type_len = 0;    opts->use_mmap           = HTTPD_CONF_USE_MMAP;  opts->use_sendfile       = HTTPD_CONF_USE_SENDFILE;  opts->use_keep_alive     = HTTPD_CONF_USE_KEEPA;  opts->use_keep_alive_1_0 = HTTPD_CONF_USE_KEEPA_1_0;  opts->use_vhosts_name    = HTTPD_CONF_USE_VHOSTS_NAME;  opts->use_range          = HTTPD_CONF_USE_RANGE;  opts->use_range_1_0      = HTTPD_CONF_USE_RANGE_1_0;  opts->use_public_only    = HTTPD_CONF_USE_PUBLIC_ONLY; /* 8th bitfield */  opts->use_enc_content_replacement = HTTPD_CONF_USE_ENC_CONTENT_REPLACEMENT;  opts->use_err_406        = HTTPD_CONF_USE_ERR_406;  opts->use_canonize_host  = HTTPD_CONF_USE_CANONIZE_HOST;  opts->use_host_err_400   = HTTPD_CONF_USE_HOST_ERR_400;  opts->use_host_err_chk   = HTTPD_CONF_USE_HOST_ERR_CHK;  opts->use_x2_hdr_chk     = HTTPD_CONF_USE_x2_HDR_CHK;  opts->use_trace_op       = HTTPD_CONF_USE_TRACE_OP;  opts->remove_url_frag    = HTTPD_CONF_USE_REMOVE_FRAG;  opts->remove_url_query   = HTTPD_CONF_USE_REMOVE_QUERY;  opts->use_secure_dirs    = HTTPD_CONF_USE_SECURE_DIRS;  opts->use_friendly_dirs  = HTTPD_CONF_USE_FRIENDLY_DIRS;    opts->use_posix_fadvise  = HTTPD_CONF_USE_POSIX_FADVISE;  opts->use_tcp_cork       = HTTPD_CONF_USE_TCP_CORK;    opts->use_req_conf       = HTTPD_CONF_USE_REQ_CONF;  opts->allow_hdr_split    = HTTPD_CONF_USE_ALLOW_HDR_SPLIT; /* 16th bitfield */  opts->allow_hdr_nil      = HTTPD_CONF_USE_ALLOW_HDR_NIL;    opts->chk_dot_dir        = HTTPD_CONF_USE_CHK_DOT_DIR;    opts->chk_encoded_slash  = HTTPD_CONF_USE_CHK_ENCODED_SLASH;  opts->chk_encoded_dot    = HTTPD_CONF_USE_CHK_ENCODED_DOT;    opts->add_def_port       = HTTPD_CONF_ADD_DEF_PORT;  opts->use_non_spc_hdrs   = HTTPD_CONF_USE_NON_SPC_HDRS;    opts->use_noatime        = HTTPD_CONF_USE_NOATIME; /* 23rd bitfield */    opts->max_header_sz      = HTTPD_CONF_INPUT_MAXSZ;  opts->max_requests       = HTTPD_CONF_MAX_REQUESTS;  opts->max_neg_A_nodes    = HTTPD_CONF_MAX_NEG_A_NODES;  opts->max_neg_AL_nodes   = HTTPD_CONF_MAX_NEG_AL_NODES;    opts->max_A_nodes        = HTTPD_CONF_MAX_A_NODES;  opts->max_AC_nodes       = HTTPD_CONF_MAX_AC_NODES;  opts->max_AE_nodes       = HTTPD_CONF_MAX_AE_NODES;  opts->max_AL_nodes       = HTTPD_CONF_MAX_AL_NODES;    opts->max_connection_nodes = HTTPD_CONF_MAX_CONNECTION_NODES;  opts->max_etag_nodes     = HTTPD_CONF_MAX_ETAG_NODES;  opts->max_range_nodes    = HTTPD_CONF_MAX_RANGE_NODES;    opts->max_req_conf_sz    = HTTPD_CONF_REQ_CONF_MAXSZ;    return (TRUE);}