line = apr_pstrcat(r->pool, NEGOTIATE_AUTH_NAME, " ",
negotiate_auth_line, NULL);
apr_table_add(r->err_headers_out,
- r->proxyreq ? "Proxy-Authenticate" : "WWW-Authenticate",
+ (PROXYREQ_PROXY == r->proxyreq) ? "Proxy-Authenticate" : "WWW-Authenticate",
line);
}
if (crec->ntlm_on) {
apr_table_add(r->err_headers_out,
- r->proxyreq ? "Proxy-Authenticate" : "WWW-Authenticate",
+ (PROXYREQ_PROXY == r->proxyreq) ? "Proxy-Authenticate" : "WWW-Authenticate",
NTLM_AUTH_NAME);
}
"Basic realm=\"", crec->ntlm_basic_realm, "\"",
NULL);
apr_table_add(r->err_headers_out,
- r->proxyreq ? "Proxy-Authenticate" : "WWW-Authenticate",
+ (PROXYREQ_PROXY == r->proxyreq) ? "Proxy-Authenticate" : "WWW-Authenticate",
line);
}
get_auth_header(request_rec * r, ntlm_config_rec * crec, const char *auth_scheme)
{
const char *auth_line = apr_table_get(r->headers_in,
- r->proxyreq ? "Proxy-Authorization"
+ (PROXYREQ_PROXY == r->proxyreq) ? "Proxy-Authorization"
: "Authorization");
if (!auth_line) {
/* Read negotiate from ntlm_auth */
apr_table_setn(r->err_headers_out,
- r->proxyreq ? "Proxy-Authenticate" : "WWW-Authenticate",
+ (PROXYREQ_PROXY == r->proxyreq) ? "Proxy-Authenticate" : "WWW-Authenticate",
apr_psprintf(r->pool, "%s %s", auth_scheme, reply));
/* This is to make sure that when receiving later messages
if (!strcmp("*", childarg)) {
/* Send last leg (possible mutual authentication token) */
apr_table_setn(r->headers_out,
- r->proxyreq ? "Proxy-Authenticate" : "WWW-Authenticate",
+ (PROXYREQ_PROXY == r->proxyreq) ? "Proxy-Authenticate" : "WWW-Authenticate",
apr_psprintf(r->pool, "%s %s", auth_type, childarg));
}
&auth_ntlm_winbind_module);
ntlm_connection_context_t *ctxt = get_connection_context( r->connection );
const char *auth_line = apr_table_get(r->headers_in,
- r->proxyreq ? "Proxy-Authorization"
+ (PROXYREQ_PROXY == r->proxyreq) ? "Proxy-Authorization"
: "Authorization");
const char *auth_line2;