Some events we retrieved from error messages are flag now, so check
those. Not all can be converted though. These are no longer set:
HTTP_DECODER_EVENT_INVALID_TRANSFER_ENCODING_VALUE_IN_RESPONSE
HTTP_DECODER_EVENT_INVALID_AUTHORITY_PORT
Part of Bug #982.
{"Response field invalid",HTTP_DECODER_EVENT_RESPONSE_HEADER_INVALID},
{"Request header name is not a token",HTTP_DECODER_EVENT_REQUEST_HEADER_INVALID},
{"Response header name is not a token",HTTP_DECODER_EVENT_RESPONSE_HEADER_INVALID},
{"Host information in request headers required by HTTP/1.1", HTTP_DECODER_EVENT_MISSING_HOST_HEADER},
{"Host information ambiguous",HTTP_DECODER_EVENT_HOST_HEADER_AMBIGUOUS},
/* { "Host information in request headers required by HTTP/1.1", HTTP_DECODER_EVENT_MISSING_HOST_HEADER}, <- tx flag HTP_HOST_MISSING
{"Host information ambiguous",HTTP_DECODER_EVENT_HOST_HEADER_AMBIGUOUS},<-txflagHTP_HOST_AMBIGUOUS*/
{"Invalid request field folding",HTTP_DECODER_EVENT_INVALID_REQUEST_FIELD_FOLDING},
{"Invalid response field folding",HTTP_DECODER_EVENT_INVALID_RESPONSE_FIELD_FOLDING},
{"Request server port number differs from the actual TCP port",HTTP_DECODER_EVENT_REQUEST_SERVER_PORT_TCP_PORT_MISMATCH},
/* line is now: htp_log(connp, HTP_LOG_MARK, HTP_LOG_ERROR, 0, "Request server port=%d number differs from the actual TCP port=%d", port, connp->conn->server_port);
*luckily,"Request server port="isunique*/
/* { "Request server port number differs from the actual TCP port", HTTP_DECODER_EVENT_REQUEST_SERVER_PORT_TCP_PORT_MISMATCH}, */
{"Request server port=",HTTP_DECODER_EVENT_REQUEST_SERVER_PORT_TCP_PORT_MISMATCH},