Security: VuXML: c4a18a12-77fc-11e5-a687-206a8a720317 Security: CVE-2015-7871 Security: CVE-2015-7855 Security: CVE-2015-7854 Security: CVE-2015-7853 Security: CVE-2015-7852 Security: CVE-2015-7851 Security: CVE-2015-7850 Security: CVE-2015-7849 Security: CVE-2015-7848 Security: CVE-2015-7701 Security: CVE-2015-7703 Security: CVE-2015-7704, CVE-2015-7705 Security: CVE-2015-7691, CVE-2015-7692, CVE-2015-7702 Security: http://support.ntp.org/bin/view/Main/SecurityNotice#October_2015_NTP_Security_Vulner Sponsored by: Nginx, Inc.
66 lines
1.4 KiB
C
66 lines
1.4 KiB
C
/* AUTOGENERATED FILE. DO NOT EDIT. */
|
|
|
|
//=======Test Runner Used To Run Each Test Below=====
|
|
#define RUN_TEST(TestFunc, TestLineNum) \
|
|
{ \
|
|
Unity.CurrentTestName = #TestFunc; \
|
|
Unity.CurrentTestLineNumber = TestLineNum; \
|
|
Unity.NumberOfTests++; \
|
|
if (TEST_PROTECT()) \
|
|
{ \
|
|
setUp(); \
|
|
TestFunc(); \
|
|
} \
|
|
if (TEST_PROTECT() && !TEST_IS_IGNORED) \
|
|
{ \
|
|
tearDown(); \
|
|
} \
|
|
UnityConcludeTest(); \
|
|
}
|
|
|
|
//=======Automagically Detected Files To Include=====
|
|
#include "unity.h"
|
|
#include <setjmp.h>
|
|
#include <stdio.h>
|
|
#include "config.h"
|
|
#include "ntp_types.h"
|
|
#include "sntptest.h"
|
|
#include "crypto.h"
|
|
|
|
//=======External Functions This Runner Calls=====
|
|
extern void setUp(void);
|
|
extern void tearDown(void);
|
|
extern void test_MakeMd5Mac(void);
|
|
extern void test_MakeSHA1Mac(void);
|
|
extern void test_VerifyCorrectMD5(void);
|
|
extern void test_VerifySHA1(void);
|
|
extern void test_VerifyFailure(void);
|
|
extern void test_PacketSizeNotMultipleOfFourBytes(void);
|
|
|
|
|
|
//=======Test Reset Option=====
|
|
void resetTest(void);
|
|
void resetTest(void)
|
|
{
|
|
tearDown();
|
|
setUp();
|
|
}
|
|
|
|
char const *progname;
|
|
|
|
|
|
//=======MAIN=====
|
|
int main(int argc, char *argv[])
|
|
{
|
|
progname = argv[0];
|
|
UnityBegin("crypto.c");
|
|
RUN_TEST(test_MakeMd5Mac, 12);
|
|
RUN_TEST(test_MakeSHA1Mac, 13);
|
|
RUN_TEST(test_VerifyCorrectMD5, 14);
|
|
RUN_TEST(test_VerifySHA1, 15);
|
|
RUN_TEST(test_VerifyFailure, 16);
|
|
RUN_TEST(test_PacketSizeNotMultipleOfFourBytes, 17);
|
|
|
|
return (UnityEnd());
|
|
}
|