31 static int DetectSslVersionTestParse01(
void)
34 ssl = DetectSslVersionParse(NULL,
"SSlv3");
37 DetectSslVersionFree(NULL, ssl);
46 static int DetectSslVersionTestParse02(
void)
49 ssl = DetectSslVersionParse(NULL,
"2.5");
51 DetectSslVersionFree(NULL, ssl);
52 ssl = DetectSslVersionParse(NULL,
"tls1.0, !");
54 DetectSslVersionFree(NULL, ssl);
55 ssl = DetectSslVersionParse(NULL,
"tls1.0, !tls1.0");
57 DetectSslVersionFree(NULL, ssl);
58 ssl = DetectSslVersionParse(NULL,
"tls1.1, tls1.1");
60 DetectSslVersionFree(NULL, ssl);
61 ssl = DetectSslVersionParse(NULL,
"tls1.1, !tls1.2");
63 DetectSslVersionFree(NULL, ssl);
71 static int DetectSslVersionTestParse03(
void)
74 ssl = DetectSslVersionParse(NULL,
"SSlv3 , tls1.0");
78 DetectSslVersionFree(NULL, ssl);
79 ssl = DetectSslVersionParse(NULL,
" !tls1.2");
83 DetectSslVersionFree(NULL, ssl);
90 static void DetectSslVersionRegisterTests(
void)
92 UtRegisterTest(
"DetectSslVersionTestParse01", DetectSslVersionTestParse01);
93 UtRegisterTest(
"DetectSslVersionTestParse02", DetectSslVersionTestParse02);
94 UtRegisterTest(
"DetectSslVersionTestParse03", DetectSslVersionTestParse03);