*/
typedef apr_status_t (*ap_out_filter_func)(ap_filter_t *f, apr_bucket_brigade *b);
typedef apr_status_t (*ap_in_filter_func)(ap_filter_t *f, apr_bucket_brigade *b,
- ap_input_mode_t mode, apr_size_t *readbytes);
+ ap_input_mode_t mode, apr_off_t *readbytes);
typedef union ap_filter_func {
ap_out_filter_func out_func;
* a single line should be read.
*/
AP_DECLARE(apr_status_t) ap_get_brigade(ap_filter_t *filter, apr_bucket_brigade *bucket,
- ap_input_mode_t mode, apr_size_t *readbytes);
+ ap_input_mode_t mode, apr_off_t *readbytes);
/**
* Pass the current bucket brigade down to the next filter on the filter
static apr_status_t CaseFilterInFilter(ap_filter_t *f,
apr_bucket_brigade *pbbOut,
- ap_input_mode_t eMode,apr_size_t *nBytes)
+ ap_input_mode_t eMode,apr_off_t *nBytes)
{
CaseFilterInContext *pCtx=f->ctx;
apr_status_t ret;
}
static int xlate_in_filter(ap_filter_t *f, apr_bucket_brigade *bb,
- ap_input_mode_t mode, apr_size_t *readbytes)
+ ap_input_mode_t mode, apr_off_t *readbytes)
{
apr_status_t rv;
charset_req_t *reqinfo = ap_get_module_config(f->r->request_config,
#if 0
static int ef_input_filter(ap_filter_t *f, apr_bucket_brigade *bb,
- ap_input_mode_t mode, apr_size_t *readbytes)
+ ap_input_mode_t mode, apr_off_t *readbytes)
{
apr_status_t rv;
apr_bucket *b;
static long get_chunk_size(char *);
apr_status_t ap_dechunk_filter(ap_filter_t *f, apr_bucket_brigade *bb,
- ap_input_mode_t mode, apr_size_t *readbytes)
+ ap_input_mode_t mode, apr_off_t *readbytes)
{
apr_status_t rv;
struct dechunk_ctx *ctx = f->ctx;
if (ctx->state == WANT_BODY) {
/* Tell ap_http_filter() how many bytes to deliver. */
- apr_size_t chunk_bytes = ctx->chunk_size - ctx->bytes_delivered;
+ apr_off_t chunk_bytes = ctx->chunk_size - ctx->bytes_delivered;
if ((rv = ap_get_brigade(f->next, bb, mode,
&chunk_bytes)) != APR_SUCCESS) {
apr_bucket_brigade *b;
} http_ctx_t;
-apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode_t mode, apr_size_t *readbytes)
+apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode_t mode, apr_off_t *readbytes)
{
apr_bucket *e;
char *buff;
### allow us to defer creation of the brigade to when we actually
### need to send a FLUSH. */
apr_bucket_brigade *bb = apr_brigade_create(r->pool);
- apr_size_t zero = 0;
+ apr_off_t zero = 0;
/* Flush the filter contents if:
*
* These (input) filters are internal to the mod_core operation.
*/
apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b,
- ap_input_mode_t mode, apr_size_t *readbytes);
+ ap_input_mode_t mode, apr_off_t *readbytes);
apr_status_t ap_dechunk_filter(ap_filter_t *f, apr_bucket_brigade *b,
- ap_input_mode_t mode, apr_size_t *readbytes);
+ ap_input_mode_t mode, apr_off_t *readbytes);
char *ap_response_code_string(request_rec *r, int error_index);
return "SSLSessionCache: shared memory cache not useable on this platform";
#endif
mc->nSessionCacheMode = SSL_SCMODE_SHMHT;
- cp = strchr(arg, ':');
+ cp = ap_strchr_c(arg, ':');
mc->szSessionCacheDataFile = (char *)apr_pstrdup(mc->pPool,
ap_server_root_relative(cmd->pool, cp+1));
mc->tSessionCacheDataTable = NULL;
0x02,
};
-static DH *get_dh512()
+static DH *get_dh512(void)
{
DH *dh;
0x02,
};
-static DH *get_dh1024()
+static DH *get_dh1024(void)
{
DH *dh;
return ap_pass_brigade(r->output_filters, bb);
}
-static int core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode_t mode, apr_size_t *readbytes)
+static int core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode_t mode, apr_off_t *readbytes)
{
apr_bucket *e;
while (1) {
if (APR_BRIGADE_EMPTY(b)) {
- apr_size_t zero = 0;
+ apr_off_t zero = 0;
if ((retval = ap_get_brigade(c->input_filters, b,
AP_MODE_BLOCKING,
&zero /* readline */)) != APR_SUCCESS ||
AP_DECLARE(apr_status_t) ap_get_brigade(ap_filter_t *next,
apr_bucket_brigade *bb,
ap_input_mode_t mode,
- apr_size_t *readbytes)
+ apr_off_t *readbytes)
{
if (next) {
return next->frec->filter_func.in_func(next, bb, mode, readbytes);