/* Derive a code page ID give a language name or ID */
static char* derive_codepage_from_lang (apr_pool_t *p, char *language)
{
- int lang_len;
char *charset;
if (!language) /* our default codepage */
return apr_pstrdup(p, "ISO-8859-1");
- else
- lang_len = strlen(language);
charset = (char*) apr_hash_get(charset_conversions, language, APR_HASH_KEY_STRING);
char *cmd_only, *ptr;
const char *new_cmd;
netware_dir_config *d;
- apr_file_t *fh;
const char *args = "";
d = (netware_dir_config *)ap_get_module_config(r->per_dir_config,
char* key, int mutual, server_rec *sconf)
{
int s;
- int one = 1;
char addr[MAX_ADDRESS];
struct sslserveropts opts;
unsigned int optParam;
WSAPROTOCOL_INFO SecureProtoInfo;
- int no = 1;
if (server->sin_addr.s_addr != htonl(INADDR_ANY))
apr_snprintf(addr, sizeof(addr), "address %s port %d",
const char *ips, const char* key)
{
NWSSLSrvConfigRec* sc = get_nwssl_cfg(cmd->server);
- seclistenup_rec *listen_node;
const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
char *ports, *addr;
unsigned short port;
apr_pool_t *ptemp)
{
seclisten_rec* ap_old_seclisteners;
- char *ports, *addr;
- unsigned short port;
ap_listen_rec **walk;
seclisten_rec **secwalk;
apr_sockaddr_t *sa;
ap_listen_rec *walk;
seclisten_rec *secwalk, *lastsecwalk;
apr_sockaddr_t *sa;
- int found_listener = 0;
/* Walk the old listeners list and compare it to the secure
listeners list and remove any secure listener records that
static int nwssl_hook_Fixup(request_rec *r)
{
- int i;
-
if (!isSecure(r) && !isSecureUpgraded(r))
return DECLINED;
* buckets and use their length to calculate the size
*/
int all_buckets_here=0;
- int unresolved_length = 0;
size=0;
for (e = APR_BRIGADE_FIRST(in);
e != APR_BRIGADE_SENTINEL(in);
break;
}
if (APR_BUCKET_IS_FLUSH(e)) {
- unresolved_length = 1;
continue;
}
if (e->length == (apr_size_t)-1) {
dav_error *err;
int result;
apr_xml_doc *doc;
- const apr_xml_elem *child;
dav_walker_ctx ctx = { { 0 } };
dav_response *multi_status;
/* ### validate that only one of these three elements is present */
- if (doc == NULL
- || (child = dav_find_child(doc->root, "allprop")) != NULL) {
+ if (doc == NULL || dav_find_child(doc->root, "allprop") != NULL) {
/* note: no request body implies allprop */
ctx.propfind_type = DAV_PROPFIND_IS_ALLPROP;
}
- else if ((child = dav_find_child(doc->root, "propname")) != NULL) {
+ else if (dav_find_child(doc->root, "propname") != NULL) {
ctx.propfind_type = DAV_PROPFIND_IS_PROPNAME;
}
- else if ((child = dav_find_child(doc->root, "prop")) != NULL) {
+ else if (dav_find_child(doc->root, "prop") != NULL) {
ctx.propfind_type = DAV_PROPFIND_IS_PROP;
}
else {
static int filter_lookup(ap_filter_t *f, ap_filter_rec_t *filter)
{
ap_filter_provider_t *provider;
- const char *str = NULL;
- char *str1;
int match;
int err = 0;
unsigned int proto_flags;
request_rec *r = f->r;
harness_ctx *ctx = f->ctx;
provider_ctx *pctx;
+#ifndef NO_PROTOCOL
mod_filter_ctx *rctx = ap_get_module_config(r->request_config,
&filter_module);
+#endif
/* Check registered providers in order */
for (provider = filter->providers; provider; provider = provider->next) {
}
if (proto_flags & AP_FILTER_PROTO_TRANSFORM) {
- str = apr_table_get(r->headers_out, "Cache-Control");
+ const char *str = apr_table_get(r->headers_out,
+ "Cache-Control");
if (str) {
- str1 = apr_pstrdup(r->pool, str);
+ char *str1 = apr_pstrdup(r->pool, str);
ap_str_tolower(str1);
if (strstr(str1, "no-transform")) {
/* can't use this provider; try next */
static apr_status_t filter_harness(ap_filter_t *f, apr_bucket_brigade *bb)
{
apr_status_t ret;
+#ifndef NO_PROTOCOL
const char *cachecontrol;
char *str;
+#endif
harness_ctx *ctx = f->ctx;
ap_filter_rec_t *filter = f->frec;
static int include_fixup(request_rec *r)
{
- include_dir_config *conf;
-
- conf = ap_get_module_config(r->per_dir_config, &include_module);
-
if (r->handler && (strcmp(r->handler, "server-parsed") == 0))
{
if (!r->content_type || !*r->content_type) {
}
#else
{
+ include_dir_config *conf = ap_get_module_config(r->per_dir_config,
+ &include_module);
+
if (conf->xbithack == XBITHACK_OFF) {
return DECLINED;
}
int lc;
int i, cflg;
int iflag; /* used for non-ascii characters in brackets */
- int nodelim = 0;
char *sp = commands->cp;
int regerrno = 0;
if ((c = GETC()) == eof || c == '\n') {
if (c == '\n') {
UNGETC(c);
- nodelim = 1;
}
commands->cp = sp;
goto out;
while (posn < length) {
unsigned char c = fheader[posn];
- char hexval[3];
if (i >= 20) {
i = 0;
/* already called in the knowledge that the characters are hex digits */
PROXY_DECLARE(int) ap_proxy_hex2c(const char *x)
{
- int i, ch;
+ int i;
#if !APR_CHARSET_EBCDIC
- ch = x[0];
+ int ch = x[0];
+
if (apr_isdigit(ch)) {
i = ch - '0';
}