diff --git a/src/suricata.c b/src/suricata.c index 40e8df9845..fe64ba0b23 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1102,6 +1102,11 @@ int main(int argc, char **argv) SCLogInfo("This is %s version %s", PROG_NAME, PROG_VER); #endif +#ifndef HAVE_HTP_TX_GET_RESPONSE_HEADERS_RAW + SCLogWarning(SC_WARN_OUTDATED_LIBHTP, "libhtp < 0.2.7 detected. Keyword " + "http_raw_header will not be able to inspect response headers."); +#endif + SetBpfString(optind, argv); UtilCpuPrintSummary(); diff --git a/src/util-error.c b/src/util-error.c index b04334771e..3f5232439f 100644 --- a/src/util-error.c +++ b/src/util-error.c @@ -214,6 +214,7 @@ const char * SCErrorToString(SCError err) CASE_CODE (SC_ERR_RAWBYTES_FILE_DATA); CASE_CODE (SC_ERR_SOCKET); CASE_CODE (SC_ERR_PCAP_TRANSLATE); + CASE_CODE (SC_WARN_OUTDATED_LIBHTP); default: return "UNKNOWN_ERROR"; diff --git a/src/util-error.h b/src/util-error.h index a26147c0bb..9294903b96 100644 --- a/src/util-error.h +++ b/src/util-error.h @@ -229,6 +229,7 @@ typedef enum { SC_ERR_RAWBYTES_FILE_DATA, SC_ERR_SOCKET, SC_ERR_PCAP_TRANSLATE, /* failed to translate ip to dev */ + SC_WARN_OUTDATED_LIBHTP, } SCError; const char *SCErrorToString(SCError);