From c4b92f3f8900449f463a33474d5d1d6d85134d61 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 26 Sep 2013 19:14:39 +0000 Subject: [PATCH] allow building mod_authnz_fcgi with 2.4.x branch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1526647 13f79535-47bb-0310-9956-ffa450edef68 --- modules/aaa/mod_authnz_fcgi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/aaa/mod_authnz_fcgi.c b/modules/aaa/mod_authnz_fcgi.c index 6f6e2750e1..04bb837ed3 100644 --- a/modules/aaa/mod_authnz_fcgi.c +++ b/modules/aaa/mod_authnz_fcgi.c @@ -29,6 +29,7 @@ #include "ap_provider.h" #include "mod_auth.h" #include "util_fcgi.h" +#include "ap_mmn.h" module AP_MODULE_DECLARE_DATA authnz_fcgi_module; @@ -181,9 +182,11 @@ static apr_status_t recv_data(const fcgi_provider_conf *conf, conf->backend); return rv; } - + +#if AP_MODULE_MAGIC_AT_LEAST(20130702,2) ap_log_rdata(APLOG_MARK, APLOG_TRACE5, r, "FastCGI data received", buf, *buflen, AP_LOG_DATA_SHOW_OFFSET); +#endif return APR_SUCCESS; } @@ -222,8 +225,10 @@ static apr_status_t sendv_data(const fcgi_provider_conf *conf, for (i = 0; i < nvec; i++) { to_write += vec[i].iov_len; +#if AP_MODULE_MAGIC_AT_LEAST(20130702,2) ap_log_rdata(APLOG_MARK, APLOG_TRACE5, r, "FastCGI data sent", vec[i].iov_base, vec[i].iov_len, AP_LOG_DATA_SHOW_OFFSET); +#endif } offset = 0; -- 2.40.0