Bug #452 » 0003-bug-452-enable-http-extra-callbacks-for-configs-othe.patch
src/app-layer-htp.c | ||
---|---|---|
void AppLayerHtpRegisterExtraCallbacks(void) {
|
||
SCEnter();
|
||
SCLogDebug("Registering extra htp callbacks");
|
||
if (need_htp_request_body == 1) {
|
||
SCLogDebug("Registering callback htp_config_register_request_body_data on htp");
|
||
htp_config_register_request_body_data(cfglist.cfg,
|
||
HTPCallbackRequestBodyData);
|
||
}
|
||
if (need_htp_response_body == 1) {
|
||
SCLogDebug("Registering callback htp_config_register_response_body_data on htp");
|
||
htp_config_register_response_body_data(cfglist.cfg,
|
||
HTPCallbackResponseBodyData);
|
||
HTPCfgRec *p_cfglist = &cfglist;
|
||
while (p_cfglist != NULL) {
|
||
if (need_htp_request_body == 1) {
|
||
SCLogDebug("Registering callback htp_config_register_request_body_data on htp");
|
||
htp_config_register_request_body_data(p_cfglist->cfg,
|
||
HTPCallbackRequestBodyData);
|
||
}
|
||
if (need_htp_response_body == 1) {
|
||
SCLogDebug("Registering callback htp_config_register_response_body_data on htp");
|
||
htp_config_register_response_body_data(p_cfglist->cfg,
|
||
HTPCallbackResponseBodyData);
|
||
}
|
||
p_cfglist = p_cfglist->next;
|
||
}
|
||
SCReturn;
|
||
}
|
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »