apr_table_entry_t *entry = &(entries[i]);
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
- entry->key, entry->val)) {
+ entry->key, (void*)entry->val)) {
return 0;
}
}
value = (value != NULL) ? value : "http";
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-server-protocol",
- value)) {
+ (unsigned char *)value)) {
writeError = 1;
goto writeErrorHandler;
}
if ((value = r->connection->remote_ip) != NULL) {
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-remote-addr",
- value)) {
+ (unsigned char *)value)) {
writeError = 1;
goto writeErrorHandler;
}
if (value != NULL) {
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-remote-host",
- value)) {
+ (unsigned char *)value)) {
writeError = 1;
goto writeErrorHandler;
}
#endif
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-auth-type",
- value)) {
+ (unsigned char *)value)) {
writeError = 1;
goto writeErrorHandler;
}
#endif
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-remote-user",
- value)) {
+ (unsigned char *)value)) {
writeError = 1;
goto writeErrorHandler;
}
if (cfg != NULL) {
if (cfg->appPrefix != NULL) {
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
- "x-webobjects-adaptor-prefix", cfg->appPrefix)) {
+ "x-webobjects-adaptor-prefix",
+ (unsigned char *)cfg->appPrefix)) {
writeError = 1;
goto writeErrorHandler;
}
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-server-name",
+ (unsigned char *)
r->server->server_hostname)) {
writeError = 1;
goto writeErrorHandler;
apr_snprintf(tmp, sizeof(tmp), "%i", r->server->port);
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-server-port",
- tmp)) {
+ (unsigned char *)tmp)) {
writeError = 1;
goto writeErrorHandler;
}
}
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-server-url",
- tmp)) {
+ (unsigned char *)tmp)) {
writeError = 1;
goto writeErrorHandler;
}
if (s != NULL && strncasecmp(s, "on", 2) == 0) { // SSL is one
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-https-enabled",
- "1")) {
+ (unsigned char *)"1")) {
writeError = 1;
goto writeErrorHandler;
}
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-clients-cert",
- s)) {
+ (unsigned char *)s)) {
writeError = 1;
goto writeErrorHandler;
}
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
entry->key,
- entry->val)) {
+ (void *)entry->val)) {
writeError = 1;
goto writeErrorHandler;
}
if ((s = apr_table_get(env, "SSL_CIPHER_ALGKEYSIZE")) != NULL) {
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-https-secret-keysize",
- s)) {
+ (unsigned char *)s)) {
writeError = 1;
goto writeErrorHandler;
}
if ((s = apr_table_get(env, "SSL_CIPHER_USEKEYSIZE")) != NULL) {
if (!NGBufferedDescriptor_writeHttpHeader(toApp,
"x-webobjects-https-keysize",
- s)) {
+ (unsigned char *)s)) {
writeError = 1;
goto writeErrorHandler;
}
port = strtol((pos + 1), &end, 10);
host = apr_palloc(_rq->pool, (pos - socket) + 3);
- strncpy(host, socket, (pos - socket));
+ strncpy((char *)host, socket, (pos - socket));
host[pos - socket] = '\0';
}
else {
- host = "127.0.0.1";
+ host = (unsigned char *)"127.0.0.1";
port = strtol(socket, &end, 10);
}
memset(result, 0, sizeof(struct sockaddr_in));
snsi = (struct sockaddr_in *)result;
- snsi->sin_addr.s_addr = apr_inet_addr(host);
+ snsi->sin_addr.s_addr = apr_inet_addr((char *)host);
snsi->sin_family = AF_INET;
snsi->sin_port = htons((short)(port & 0xFFFF));