/** ** Initialize the HttpInspect global configuration. ** ** The main point of this function is to initialize the server ** lookup type. We also do things like memset, etc. ** ** @param GlobalConf pointer to the global configuration ** ** @return integer ** ** @retval HI_SUCCESS function successful ** @retval HI_MEM_ALLOC_FAIL could not allocate memory */ int hi_ui_config_init_global_conf(HTTPINSPECT_GLOBAL_CONF *GlobalConf) { int iRet; iRet = hi_ui_server_lookup_init(&GlobalConf->server_lookup); if (iRet) { return iRet; } return HI_SUCCESS; }
/** ** Initialize the HttpInspect global configuration. ** ** The main point of this function is to initialize the server ** lookup type. We also do things like memset, etc. ** ** @param GlobalConf pointer to the global configuration ** ** @return integer ** ** @retval HI_SUCCESS function successful ** @retval HI_MEM_ALLOC_FAIL could not allocate memory */ int hi_ui_config_init_global_conf(HTTPINSPECT_GLOBAL_CONF *GlobalConf) { int iRet; memset(GlobalConf, 0x00, sizeof(HTTPINSPECT_GLOBAL_CONF)); if((iRet = hi_ui_server_lookup_init(&GlobalConf->server_lookup))) { return iRet; } return HI_SUCCESS; }
/** ** Initialize the HttpInspect global configuration. ** ** The main point of this function is to initialize the server ** lookup type. We also do things like memset, etc. ** ** @param GlobalConf pointer to the global configuration ** ** @return integer ** ** @retval HI_SUCCESS function successful ** @retval HI_MEM_ALLOC_FAIL could not allocate memory */ int hi_ui_config_init_global_conf(HTTPINSPECT_GLOBAL_CONF *GlobalConf) { int iRet; /* Set Global Configurations */ GlobalConf->inspection_type = HI_UI_CONFIG_STATELESS; iRet = hi_ui_server_lookup_init(&GlobalConf->server_lookup); if (iRet) { return iRet; } return HI_SUCCESS; }