Lines Matching refs:conf
125 static void log_provider_info(const fcgi_provider_conf *conf, request_rec *r)
130 conf->name,
131 conf->backend,
132 conf->host,
133 (int)conf->port,
134 conf->backend_addrs,
135 conf->is_authn ? 'N' : '_',
136 conf->is_authz ? 'Z' : '_');
168 static apr_status_t recv_data(const fcgi_provider_conf *conf,
180 conf->backend);
191 static apr_status_t recv_data_full(const fcgi_provider_conf *conf,
203 rv = recv_data(conf, r, s, buf + cumulative_len, &readlen);
213 static apr_status_t sendv_data(const fcgi_provider_conf *conf,
239 conf->backend);
265 const fcgi_provider_conf *conf,
288 return sendv_data(conf, r, s, vec, 2, &len);
292 const fcgi_provider_conf *conf,
373 rv = sendv_data(conf, r, s, vec, 2, &len);
388 return sendv_data(conf, r, s, vec, 1, &len);
465 static apr_status_t handle_response(const fcgi_provider_conf *conf,
500 rv = recv_data_full(conf, r, s, (char *)farray, AP_FCGI_HEADER_LEN);
540 rv = recv_data(conf, r, s, readbuf, &readbuflen);
598 fn, conf->backend);
625 fn, conf->backend, readbuf);
653 rv = recv_data_full(conf, r, s, readbuf, plen);
698 static void req_rsp(request_rec *r, const fcgi_provider_conf *conf,
719 rv = connect_to_peer(&s, r, conf->backend_addrs,
720 conf->backend, FCGI_IO_TIMEOUT);
724 rv = send_begin_request(r, conf, s, AP_FCGI_AUTHORIZER, request_id);
728 fn, conf->backend);
732 rv = send_environment(s, conf, r, request_id, temp_pool);
736 "to %s", fn, conf->backend);
753 rv = handle_response(conf, r, s, temp_pool, request_id, rspbuf,
758 "from %s", fn, conf->backend);
802 const fcgi_provider_conf *conf;
838 conf = apr_hash_get(fcgi_authn_providers, prov, APR_HASH_KEY_STRING);
839 if (!conf) {
847 log_provider_info(conf, r);
850 req_rsp(r, conf, password, AP_FCGI_APACHE_ROLE_AUTHENTICATOR_STR,
884 if (conf->is_authz) {
891 rnotes->successful_authnz_provider = conf->name;
930 const fcgi_provider_conf *conf;
942 conf = apr_hash_get(fcgi_authn_providers, prov, APR_HASH_KEY_STRING);
943 if (!conf) {
951 log_provider_info(conf, r);
954 req_rsp(r, conf, password,
956 conf->is_authz ? NULL : AP_FCGI_APACHE_ROLE_AUTHENTICATOR_STR,
960 if (conf->is_authz) {
967 rnotes->successful_authnz_provider = conf->name;
992 const fcgi_provider_conf *conf;
1003 conf = apr_hash_get(fcgi_authz_providers, prov, APR_HASH_KEY_STRING);
1004 if (!conf) {
1012 log_provider_info(conf, r);
1019 if (conf->is_authn) {
1029 && !strcmp(rnotes->successful_authnz_provider, conf->name)) {
1037 req_rsp(r, conf, NULL, AP_FCGI_APACHE_ROLE_AUTHORIZER_STR, NULL, NULL);
1169 fcgi_provider_conf *conf = apr_pcalloc(cmd->pool, sizeof(*conf));
1191 conf->is_authn = 1;
1194 conf->is_authz = 1;
1197 conf->is_authn = conf->is_authz = 1;
1210 conf->name = argv[ca];
1242 conf->backend = argv[ca];
1243 conf->host = host;
1244 conf->port = port;
1247 rv = apr_sockaddr_info_get(&conf->backend_addrs, conf->host,
1248 APR_UNSPEC, conf->port, 0, cmd->pool);
1252 conf->backend);
1267 if (conf->is_authn) {
1268 apr_hash_set(fcgi_authn_providers, conf->name, APR_HASH_KEY_STRING,
1269 conf);
1271 conf->name,
1277 if (conf->is_authz) {
1278 apr_hash_set(fcgi_authz_providers, conf->name, APR_HASH_KEY_STRING,
1279 conf);
1281 conf->name,