-/* Copyright (C) 2007-2013 Open Information Security Foundation
+/* Copyright (C) 2007-2020 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
static int HTPStateGetAlstateProgress(void *tx, uint8_t direction);
static uint64_t HTPStateGetTxCnt(void *alstate);
static int HTPStateGetAlstateProgressCompletionStatus(uint8_t direction);
+#ifdef UNITTESTS
+static void HTPParserRegisterTests(void);
+#endif
static inline uint64_t HtpGetActiveRequestTxID(HtpState *s)
{
PASS;
}
-#endif /* UNITTESTS */
/**
* \brief Register the Unit tests for the HTTP protocol
*/
-void HTPParserRegisterTests(void)
+static void HTPParserRegisterTests(void)
{
-#ifdef UNITTESTS
UtRegisterTest("HTPParserTest01", HTPParserTest01);
UtRegisterTest("HTPParserTest01a", HTPParserTest01a);
UtRegisterTest("HTPParserTest01b", HTPParserTest01b);
HTPFileParserRegisterTests();
HTPXFFParserRegisterTests();
-#endif /* UNITTESTS */
}
+#endif /* UNITTESTS */
/**
* @}
-/* Copyright (C) 2007-2011 Open Information Security Foundation
+/* Copyright (C) 2007-2020 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
SC_ATOMIC_EXTERN(uint32_t, htp_config_flags);
void RegisterHTPParsers(void);
-void HTPParserRegisterTests(void);
void HTPAtExitPrintStats(void);
void HTPFreeConfig(void);