]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libstrongswan/tests/suites/test_vectors.c
ikev2: Properly free DH secret in case of errors during IKE key derivation
[thirdparty/strongswan.git] / src / libstrongswan / tests / suites / test_vectors.c
1 /*
2 * Copyright (C) 2013 Martin Willi
3 * Copyright (C) 2013 revosec AG
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 #include "test_suite.h"
17
18 /*******************************************************************************
19 * Check if test vectors have been successful during transform registration
20 */
21
22 START_TEST(test_vectors)
23 {
24 fail_if(lib->crypto->get_test_vector_failures(lib->crypto));
25 }
26 END_TEST
27
28
29 Suite *vectors_suite_create()
30 {
31 Suite *s;
32 TCase *tc;
33
34 s = suite_create("vectors");
35
36 tc = tcase_create("failures");
37 tcase_add_test(tc, test_vectors);
38 suite_add_tcase(s, tc);
39
40 return s;
41 }