+ /* If not configured, use the default */
+ tr->new_cfg->internal->max_tree_depth = TR_DEFAULT_MAX_TREE_DEPTH;
+ }
+ if (NULL != (jrname = json_object_get(jint, "realm_name"))) {
+ if (json_is_string(jrname)) {
+ tr->new_cfg->internal->realm_name = json_integer_value(jrname);
+ } else {
+ fprintf(stderr,"tr_cfg_parse_internal: Parsing error, realm_name is not a string.\n");
+ return TR_CFG_NOPARSE;
+ }
+ }
+ else {
+ fprintf(stderr, "tr_cfg_parse_internal: Parsing error, realm_name is not found.\n");