}
static int SMTPProcessCommandBDAT(
- SMTPState *state, Flow *f, AppLayerParserState *pstate, SMTPLine *line)
+ SMTPState *state, Flow *f, AppLayerParserState *pstate, const SMTPLine *line)
{
SCEnter();
* \retval -1 error
*/
static int SMTPProcessCommandDATA(
- SMTPState *state, Flow *f, AppLayerParserState *pstate, SMTPLine *line)
+ SMTPState *state, Flow *f, AppLayerParserState *pstate, const SMTPLine *line)
{
SCEnter();
}
static int SMTPProcessReply(SMTPState *state, Flow *f, AppLayerParserState *pstate,
- SMTPThreadCtx *td, SMTPInput *input, SMTPLine *line)
+ SMTPThreadCtx *td, SMTPInput *input, const SMTPLine *line)
{
SCEnter();
return 0;
}
-static int SMTPParseCommandBDAT(SMTPState *state, SMTPLine *line)
+static int SMTPParseCommandBDAT(SMTPState *state, const SMTPLine *line)
{
SCEnter();
return 0;
}
-static int SMTPParseCommandWithParam(SMTPState *state, SMTPLine *line, uint8_t prefix_len,
+static int SMTPParseCommandWithParam(SMTPState *state, const SMTPLine *line, uint8_t prefix_len,
uint8_t **target, uint16_t *target_len)
{
int i = prefix_len + 1;
return 0;
}
-static int SMTPParseCommandHELO(SMTPState *state, SMTPLine *line)
+static int SMTPParseCommandHELO(SMTPState *state, const SMTPLine *line)
{
if (state->helo) {
SMTPSetEvent(state, SMTP_DECODER_EVENT_DUPLICATE_FIELDS);
return SMTPParseCommandWithParam(state, line, 4, &state->helo, &state->helo_len);
}
-static int SMTPParseCommandMAILFROM(SMTPState *state, SMTPLine *line)
+static int SMTPParseCommandMAILFROM(SMTPState *state, const SMTPLine *line)
{
if (state->curr_tx->mail_from) {
SMTPSetEvent(state, SMTP_DECODER_EVENT_DUPLICATE_FIELDS);
state, line, 9, &state->curr_tx->mail_from, &state->curr_tx->mail_from_len);
}
-static int SMTPParseCommandRCPTTO(SMTPState *state, SMTPLine *line)
+static int SMTPParseCommandRCPTTO(SMTPState *state, const SMTPLine *line)
{
uint8_t *rcptto;
uint16_t rcptto_len;
}
/* consider 'rset' and 'quit' to be part of the existing state */
-static int NoNewTx(SMTPState *state, SMTPLine *line)
+static int NoNewTx(SMTPState *state, const SMTPLine *line)
{
if (!(state->parser_state & SMTP_PARSER_STATE_COMMAND_DATA_MODE)) {
if (line->len >= 4 && SCMemcmpLowercase("rset", line->buf, 4) == 0) {
/* XXX have a better name */
#define rawmsgname "rawmsg"
-static int SMTPProcessRequest(
- SMTPState *state, Flow *f, AppLayerParserState *pstate, SMTPInput *input, SMTPLine *line)
+static int SMTPProcessRequest(SMTPState *state, Flow *f, AppLayerParserState *pstate,
+ SMTPInput *input, const SMTPLine *line)
{
SCEnter();
SMTPTransaction *tx = state->curr_tx;