26 #ifndef APACHE_UTIL_FCGI_H
27 #define APACHE_UTIL_FCGI_H
62 #define AP_FCGI_HEADER_LEN 8
67 #define AP_FCGI_MAX_CONTENT_LEN 65535
72 #define AP_FCGI_VERSION_1 1
77 #define AP_FCGI_BEGIN_REQUEST 1
78 #define AP_FCGI_ABORT_REQUEST 2
79 #define AP_FCGI_END_REQUEST 3
80 #define AP_FCGI_PARAMS 4
81 #define AP_FCGI_STDIN 5
82 #define AP_FCGI_STDOUT 6
83 #define AP_FCGI_STDERR 7
84 #define AP_FCGI_DATA 8
85 #define AP_FCGI_GET_VALUES 9
86 #define AP_FCGI_GET_VALUES_RESULT 10
87 #define AP_FCGI_UNKNOWN_TYPE 11
88 #define AP_FCGI_MAXTYPE (AP_FCGI_UNKNOWN_TYPE)
93 #define AP_FCGI_HDR_VERSION_OFFSET 0
94 #define AP_FCGI_HDR_TYPE_OFFSET 1
95 #define AP_FCGI_HDR_REQUEST_ID_B1_OFFSET 2
96 #define AP_FCGI_HDR_REQUEST_ID_B0_OFFSET 3
97 #define AP_FCGI_HDR_CONTENT_LEN_B1_OFFSET 4
98 #define AP_FCGI_HDR_CONTENT_LEN_B0_OFFSET 5
99 #define AP_FCGI_HDR_PADDING_LEN_OFFSET 6
100 #define AP_FCGI_HDR_RESERVED_OFFSET 7
119 unsigned char reserved[5];
125 #define AP_FCGI_RESPONDER 1
126 #define AP_FCGI_AUTHORIZER 2
127 #define AP_FCGI_FILTER 3
132 #define AP_FCGI_KEEP_CONN 1
137 #define AP_FCGI_BRB_ROLEB1_OFFSET 0
138 #define AP_FCGI_BRB_ROLEB0_OFFSET 1
139 #define AP_FCGI_BRB_FLAGS_OFFSET 2
140 #define AP_FCGI_BRB_RESERVED0_OFFSET 3
141 #define AP_FCGI_BRB_RESERVED1_OFFSET 4
142 #define AP_FCGI_BRB_RESERVED2_OFFSET 5
143 #define AP_FCGI_BRB_RESERVED3_OFFSET 6
144 #define AP_FCGI_BRB_RESERVED4_OFFSET 7
175 unsigned char *padding_len,
200 unsigned char padding_len);
210 unsigned char flags);
260 #define AP_FCGI_RESPONDER_STR "RESPONDER"
261 #define AP_FCGI_AUTHORIZER_STR "AUTHORIZER"
262 #define AP_FCGI_FILTER_STR "FILTER"
271 #define AP_FCGI_APACHE_ROLE_AUTHENTICATOR_STR "AUTHENTICATOR"
272 #define AP_FCGI_APACHE_ROLE_AUTHORIZER_STR "AUTHORIZER"
273 #define AP_FCGI_APACHE_ROLE_ACCESS_CHECKER_STR "ACCESS_CHECKER"
void ap_fcgi_header_from_array(ap_fcgi_header *h, unsigned char a[])
void ap_fcgi_fill_in_header(ap_fcgi_header *header, unsigned char type, apr_uint16_t request_id, apr_uint16_t content_len, unsigned char padding_len)
apr_size_t ap_fcgi_encoded_env_len(apr_table_t *env, apr_size_t maxlen, int *starting_elem)
void ap_fcgi_fill_in_request_body(ap_fcgi_begin_request_body *brb, int role, unsigned char flags)
void ap_fcgi_header_fields_from_array(unsigned char *version, unsigned char *type, apr_uint16_t *request_id, apr_uint16_t *content_len, unsigned char *padding_len, unsigned char a[])
void ap_fcgi_header_to_array(ap_fcgi_header *h, unsigned char a[])
apr_status_t ap_fcgi_encode_env(request_rec *r, apr_table_t *env, void *buffer, apr_size_t buflen, int *starting_elem)
void ap_fcgi_begin_request_body_to_array(ap_fcgi_begin_request_body *h, unsigned char a[])
dav_resource int dav_locktoken dav_response int flags
Definition: mod_dav.h:1458
request_rec * r
Definition: mod_dav.h:518
int apr_status_t
Definition: apr_errno.h:44
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
#define AP_DECLARE(x)
Definition: macros.h:1
This represents the content data of the FastCGI record when the type is AP_FCGI_BEGIN_REQUEST.
Definition: util_fcgi.h:106
unsigned char roleB0
Definition: util_fcgi.h:112
unsigned char flags
Definition: util_fcgi.h:117
unsigned char roleB1
Definition: util_fcgi.h:111
A structure that represents the current request.
Definition: httpd.h:856