/forgerock/web-agents-v4/source/ |
H A D | config_file.c | 304 static void parse_config_value(unsigned long instance_id, const char *line, const char *prm, int type, argument 317 AM_LOG_DEBUG(instance_id, "am_get_config_file() %s is set to '%s'", 321 AM_LOG_DEBUG(instance_id, "am_get_config_file() %s is set to '%s'", 336 AM_LOG_DEBUG(instance_id, "am_get_config_file() %s is set to '%d'", prm, *value); 348 AM_LOG_DEBUG(instance_id, "am_get_config_file() %s is set to %d value(s)", prm, *itm_sz); 360 AM_LOG_DEBUG(instance_id, "am_get_config_file() %s is set to %d value(s)", prm, *itm_sz); 381 AM_LOG_DEBUG(instance_id, "am_get_config_file() %s is set to %d value(s)", prm, *itm_sz); 385 AM_LOG_WARNING(instance_id, "am_get_config_file() unknown type value %d setting %s", type, prm); 390 am_config_t *am_get_config_file(unsigned long instance_id, const char *filename) { argument 400 AM_LOG_ERROR(instance_id, " [all...] |
H A D | config_xml.c | 106 AM_LOG_DEBUG(x->conf->instance_id, "am_parse_config_xml() %s is set to '********'", 110 AM_LOG_DEBUG(x->conf->instance_id, "am_parse_config_xml() %s is set to '%s'", 132 AM_LOG_DEBUG(x->conf->instance_id, "am_parse_config_xml() %s is set to '%d'", prm, *value); 152 AM_LOG_DEBUG(x->conf->instance_id, "am_parse_config_xml() %s is set to '%d'", 167 AM_LOG_DEBUG(x->conf->instance_id, "am_parse_config_xml() %s is set to '%d'", 185 AM_LOG_DEBUG(x->conf->instance_id, "am_parse_config_xml() %s is set to '%d'", 207 AM_LOG_DEBUG(x->conf->instance_id, "am_parse_config_xml() %s is set to %d value(s)", 230 AM_LOG_DEBUG(x->conf->instance_id, "am_parse_config_xml() %s is set to %d value(s)", 262 AM_LOG_DEBUG(x->conf->instance_id, "am_parse_config_xml() %s is set to %d value(s)", 268 AM_LOG_WARNING(x->conf->instance_id, "am_parse_config_xm 509 am_parse_config_xml(unsigned long instance_id, const char *xml, size_t xml_sz, char log_enable) argument [all...] |
H A D | naming_valid.c | 27 unsigned long instance_id; member in struct:url_valid_table 39 void set_valid_url_instance_running(unsigned long instance_id, int value); 40 void set_valid_url_index(unsigned long instance_id, int value); 51 static void get_validation_table_entry(unsigned long instance_id, argument 58 if (e->instance_id == instance_id && e->index == 0) { 61 if (e->instance_id == instance_id && e->index == index) { 71 static void set_validation_table_entry(unsigned long instance_id, int index, int ok, int fail) { argument 78 if (e->instance_id [all...] |
H A D | net_client.h | 49 unsigned long instance_id; member in struct:__anon85 103 int am_agent_login(unsigned long instance_id, const char *openam, 106 int am_agent_logout(unsigned long instance_id, const char *openam, 108 int am_agent_policy_request(unsigned long instance_id, const char *openam, 112 int am_url_validate(unsigned long instance_id, const char *url, 114 int am_agent_audit_request(unsigned long instance_id, const char *openam,
|
H A D | policy.c | 58 unsigned long instance_id = r != NULL ? r->instance_id : 0; local 75 AM_LOG_DEBUG(instance_id, "%s '%s' and '%s' did not match (one level wildcard match failure)", 156 AM_LOG_DEBUG(instance_id, "%s '%s' and '%s' did not match (one level wildcard match failure)", 335 unsigned long instance_id = r != NULL ? r->instance_id : 0; local 349 AM_LOG_WARNING(instance_id, "%s invalid pattern '%s'", 362 AM_LOG_WARNING(instance_id, "%s invalid resource '%s'",
|
H A D | session_saml.c | 28 unsigned long instance_id; member in struct:__anon94 109 void *am_parse_session_saml(unsigned long instance_id, const char *xml, size_t xml_sz) { argument 113 am_xml_parser_ctx_t xctx = {.instance_id = instance_id, 117 AM_LOG_ERROR(instance_id, "%s memory allocation error", thisfunc); 130 AM_LOG_ERROR(instance_id, "%s xml parser error (%d:%d) %s", thisfunc, 142 AM_LOG_DEBUG(instance_id, "%s name: '%s' value: '%s'", thisfunc, 148 AM_LOG_ERROR(instance_id, "%s %s", thisfunc, am_strerror(xctx.status));
|
H A D | session_xml.c | 39 unsigned long instance_id; member in struct:__anon95 156 void *am_parse_session_xml(unsigned long instance_id, const char *xml, size_t xml_sz) { argument 162 am_xml_parser_ctx_t xctx = {.instance_id = instance_id, 166 AM_LOG_ERROR(instance_id, "%s memory allocation error", thisfunc); 194 AM_LOG_ERROR(instance_id, "%s xml parser error (%lu:%lu) %s", thisfunc, 204 AM_LOG_ERROR(instance_id, "%s %s", thisfunc, am_strerror(xctx.status));
|
H A D | audit.c | 62 unsigned long instance_id; member in struct:am_audit::am_audit_config 72 unsigned long instance_id; member in struct:am_audit_entry 79 unsigned long instance_id; member in struct:am_audit_transfer 129 static struct am_audit_config *get_audit_config(unsigned long instance_id) { argument 134 if (audit->config[i].instance_id == instance_id) 141 static am_status_t add_audit_entry(struct am_audit_config *config, unsigned long instance_id, argument 158 audit_entry->instance_id = instance_id; 167 int am_add_remote_audit_entry(unsigned long instance_id, cons argument 222 extract_audit_entries(unsigned long instance_id, am_status_t(*callback)(const char *openam, int count, struct am_audit_transfer *batch)) argument 290 unsigned long instance_id; local [all...] |
H A D | ip.c | 424 am_status_t ip_address_match(const char *ip, const char **list, unsigned int listsize, unsigned long instance_id) { argument 437 AM_LOG_INFO(instance_id, "ip_address_match(): found ip address %s in address range %s", ip, list[i]); 445 AM_LOG_INFO(instance_id, "ip_address_match(): found ip address %s in address range %s", ip, list[i]);
|
H A D | policy_xml.c | 47 unsigned long instance_id; member in struct:__anon90 305 void *am_parse_policy_xml(unsigned long instance_id, const char *xml, size_t xml_sz, int scope) { argument 311 am_xml_parser_ctx_t xctx = {.instance_id = instance_id, 316 AM_LOG_ERROR(instance_id, "%s memory allocation error", thisfunc); 344 AM_LOG_ERROR(instance_id, "%s xml parser error (%lu:%lu) %s", thisfunc, 354 AM_LOG_ERROR(instance_id, "%s %s", thisfunc, am_strerror(xctx.status));
|
H A D | utility.h | 125 unsigned long instance_id; member in struct:notification_worker_data 131 unsigned long instance_id; member in struct:logout_worker_data 138 unsigned long instance_id; member in struct:audit_worker_data 145 unsigned long instance_id; member in struct:url_validator_worker_data 168 void am_timer_report(unsigned long instance_id, am_timer_t *t, const char *op); 172 am_status_t ip_address_match(const char *ip, const char **list, unsigned int listsize, unsigned long instance_id); 191 void *am_shm_alloc_with_gc(am_shm_t *am, size_t usize, int (*gc)(unsigned long), unsigned long instance_id); 208 am_return_t match(unsigned long instance_id, const char *subject, const char *pattern); 257 int get_valid_url_index(unsigned long instance_id); 266 void *am_parse_session_xml(unsigned long instance_id, cons [all...] |
H A D | net_ops.c | 138 AM_LOG_DEBUG(conn->instance_id, "%s app token SI: %s, S1: %s", thisfunc, 163 AM_LOG_DEBUG(conn->instance_id, "%s request header: %s", thisfunc, conn->req_headers); 212 AM_LOG_DEBUG(conn->instance_id, "%s sending %d bytes:\n%s", thisfunc, post_sz, post); 214 AM_LOG_DEBUG(conn->instance_id, "%s sending %d bytes", thisfunc, post_sz); 232 AM_LOG_DEBUG(conn->instance_id, "%s response status code: %d\n%s", 255 AM_LOG_DEBUG(conn->instance_id, "%s status: %s", thisfunc, am_strerror(status)); 345 AM_LOG_DEBUG(conn->instance_id, "%s sending %d bytes:\n%s", thisfunc, post_sz, post); 347 AM_LOG_DEBUG(conn->instance_id, "%s sending %d bytes", thisfunc, post_sz); 367 AM_LOG_DEBUG(conn->instance_id, "%s authenticate response status code: %d\n%s", 387 AM_LOG_DEBUG(conn->instance_id, " 807 do_net_connect(am_net_t *conn, struct request_data *req_data, unsigned long instance_id, const char *openam, am_net_options_t *options) argument 825 am_agent_login(unsigned long instance_id, const char *openam, const char *user, const char *pass, const char *realm, am_net_options_t *options, char **agent_token, char **pxml, size_t *pxsz, struct am_namevalue **session_list) argument 982 am_agent_logout(unsigned long instance_id, const char *openam, const char *token, am_net_options_t *options) argument 1083 am_agent_policy_request(unsigned long instance_id, const char *openam, const char *token, const char *user_token, const char *req_url, const char *scope, const char *cip, const char *pattr, am_net_options_t *options, int notify_enable, struct am_namevalue **session_list, struct am_policy_result **policy_list) argument 1180 am_url_validate(unsigned long instance_id, const char* url, am_net_options_t *options, int* httpcode) argument 1272 am_agent_audit_request(unsigned long instance_id, const char *openam, const char *logdata, am_net_options_t *options) argument [all...] |
H A D | am.h | 276 unsigned long instance_id; member in struct:am_request 323 void am_log_register_instance(unsigned long instance_id, const char *debug_log, int log_level, int log_size, 327 am_config_t *am_get_config_file(unsigned long instance_id, const char *filename); 328 int am_get_agent_config(unsigned long instance_id, const char *config_file, am_config_t **cnf);
|
H A D | cache.c | 82 unsigned long instance_id; member in struct:am_cache_entry 278 int am_purge_caches(unsigned long instance_id, time_t expiry_time) { argument 306 AM_LOG_INFO(instance_id, "evicted %d sessions out of %lu\n", delete_count, (unsigned long)cache_data->count); 314 int am_purge_caches_to_now(unsigned long instance_id) argument 316 return am_purge_caches(instance_id, time(NULL)); 349 AM_LOG_WARNING(request->instance_id, "%s failed to locate data for a key (%s)", thisfunc, key); 364 AM_LOG_WARNING(request->instance_id, "%s data for a key (%s) is obsolete (created: %s, valid until: %s)", 374 AM_LOG_WARNING(request->instance_id, "%s error %d removing file %s", 469 AM_LOG_ERROR(request->instance_id, "%s failed to remove cache entry (%s)", 476 cache_entry = am_shm_alloc_with_gc(cache, sizeof(struct am_cache_entry), am_purge_caches_to_now, request->instance_id); 550 am_remove_cache_entry(unsigned long instance_id, const char *key) argument [all...] |
H A D | log.c | 79 unsigned long instance_id; member in struct:am_log::log_bucket 86 unsigned long instance_id; member in struct:am_log::log_files 107 unsigned long instance_id; member in struct:am_log::valid_url 115 unsigned long instance_id; member in struct:am_log::instance_init 170 unsigned long instance_id; local 224 instance_id = log->bucket[index].instance_id; 230 if (f->used && f->instance_id == instance_id) { 539 f->instance_id 650 perform_logging(unsigned long instance_id, int level) argument 732 am_log_write(unsigned long instance_id, int level, const char* header, int header_sz, const char *format, ...) argument 931 am_log_register_instance(unsigned long instance_id, const char *debug_log, int log_level, int log_size, const char *audit_log, int audit_level, int audit_size, const char *config_file) argument 1016 get_valid_url_index(unsigned long instance_id) argument 1076 set_valid_url_index(unsigned long instance_id, int value) argument 1104 set_valid_url_instance_running(unsigned long instance_id, int value) argument 1197 am_agent_init_set_value(unsigned long instance_id, char lock, int val) argument 1229 am_agent_init_get_value(unsigned long instance_id, char lock) argument [all...] |
H A D | config.c | 154 unsigned long instance_id; member in struct:am_instance_entry 210 static struct am_instance_entry *get_instance_entry(unsigned long instance_id) { argument 218 if (instance_id == e->instance_id) { 275 am_remove_cache_entry(e->instance_id, e->token); /* delete cached agent session data */ 276 am_agent_init_set_value(e->instance_id, AM_TRUE, AM_FALSE); /* set this instance to 'unconfigured' */ 1262 static int am_set_agent_config(unsigned long instance_id, const char *xml, argument 1278 c = get_instance_entry(instance_id); 1293 AM_LOG_ERROR(instance_id, "%s failed to allocate %ld bytes", 1308 c->instance_id 1358 am_get_agent_config(unsigned long instance_id, const char *config_file, am_config_t **cnf) argument [all...] |
H A D | config.h | 47 unsigned long instance_id; member in struct:__anon77
|
H A D | utility.c | 177 * @param instance_id: the current instance id for debugging purposes 184 am_return_t match(unsigned long instance_id, const char *subject, const char *pattern) { argument 196 AM_LOG_DEBUG(instance_id, "match: pcre_compile failed on \"%s\" with error %s", pattern, (error == NULL) ? "unknown" : error); 202 AM_LOG_DEBUG(instance_id, "match(): '%s' does not match '%s'", subject, pattern); 205 AM_LOG_DEBUG(instance_id, "match(): '%s' matches '%s'", subject, pattern); 768 unsigned long am_instance_id(const char *instance_id) { argument 770 if (instance_id == NULL) return 0; 771 crc = crc32(crc, (const Bytef *) instance_id, (uInt) strlen(instance_id)); 956 AM_LOG_DEBUG(rq->instance_id, "get_cookie_valu 1754 am_timer_report(unsigned long instance_id, am_timer_t *t, const char *op) argument [all...] |
/forgerock/web-agents-v4/source/apache/ |
H A D | agent.c | 277 AM_LOG_DEBUG(rq->instance_id, "%s %s", thisfunc, LOGEMPTY(user)); 433 AM_LOG_DEBUG(rq->instance_id, "set_custom_response(): issuing %s sub-request to %s (%s), status %d", 463 AM_LOG_DEBUG(rq->instance_id, "set_custom_response(): status: %s (exit: %s)", 469 static char get_method_num(request_rec *r, unsigned long instance_id) { argument 474 AM_LOG_DEBUG(instance_id, "%s method %s (%s, %d)", thisfunc, LOGEMPTY(r->method), 483 AM_LOG_DEBUG(instance_id, "%s number corresponds to %s method", 492 AM_LOG_DEBUG(instance_id, "%s set method number to correspond to %s method (%d)", 503 AM_LOG_DEBUG(instance_id, "%s set method to %s", thisfunc, LOGEMPTY(r->method)); 532 AM_LOG_DEBUG(rq->instance_id, "%s preserved %d bytes", thisfunc, 616 AM_LOG_DEBUG(rq->instance_id, " [all...] |
/forgerock/web-agents-v4/source/varnish/ |
H A D | agent.c | 45 unsigned long instance_id; member in struct:agent_instance 107 settings->instance_id = am_instance_id(conf); 114 boot = am_get_config_file(settings->instance_id, conf); 120 am_log_register_instance(settings->instance_id, boot->debug_file, boot->debug_level, boot->debug, 263 AM_LOG_ERROR(ar->instance_id, "get_request_url(): unable to create request url"); 393 AM_LOG_ERROR(ar->instance_id, "set_custom_response(): memory allocation error"); 401 AM_LOG_ERROR(ar->instance_id, "set_custom_response(): memory allocation error"); 427 AM_LOG_ERROR(ar->instance_id, "set_custom_response(): memory allocation error"); 460 AM_LOG_DEBUG(ar->instance_id, "set_custom_response(): status: %s (exit: %s)", 481 AM_LOG_WARNING(ar->instance_id, " [all...] |
/forgerock/web-agents-v4/source/varnish3/ |
H A D | agent.c | 46 unsigned long instance_id; member in struct:agent_instance 113 settings->instance_id = am_instance_id(conf); 120 boot = am_get_config_file(settings->instance_id, conf); 126 am_log_register_instance(settings->instance_id, boot->debug_file, boot->debug_level, boot->debug, 307 AM_LOG_ERROR(ar->instance_id, "get_request_url(): unable to create request url"); 443 AM_LOG_ERROR(ar->instance_id, "set_custom_response(): memory allocation error"); 451 AM_LOG_ERROR(ar->instance_id, "set_custom_response(): memory allocation error"); 477 AM_LOG_ERROR(ar->instance_id, "set_custom_response(): memory allocation error"); 510 AM_LOG_DEBUG(ar->instance_id, "set_custom_response(): status: %s (exit: %s)", 531 AM_LOG_WARNING(ar->instance_id, " [all...] |
/forgerock/web-agents-v4/source/iis/ |
H A D | agent.c | 439 unsigned long instance_id, PCSTR var) { 446 AM_LOG_DEBUG(instance_id, "%s trying to fetch server variable %s", thisfunc, var); 449 AM_LOG_WARNING(instance_id, 453 AM_LOG_DEBUG(instance_id, "%s found variable %s with value [%s]", 492 char *path_info = (char *) get_server_variable(ctx, req->instance_id, "PATH_INFO"); 493 char *script_name = (char *) get_server_variable(ctx, req->instance_id, "SCRIPT_NAME"); 500 AM_LOG_WARNING(req->instance_id, "%s script name %s not found in path info (%s). " 509 AM_LOG_DEBUG(req->instance_id, "%s reconstructed path info: %s", thisfunc, 523 AM_LOG_DEBUG(rq->instance_id, "%s %s = %s", thisfunc, LOGEMPTY(key), LOGEMPTY(value)); 528 AM_LOG_WARNING(rq->instance_id, " 438 get_server_variable(IHttpContext *ctx, unsigned long instance_id, PCSTR var) argument [all...] |