created class init_config_t encapsulating configuration issues of
IKE_SA_INIT phase
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
#include <testcases/aes_cbc_crypter_test.h>
|
||||
#include <testcases/hmac_signer_test.h>
|
||||
#include <testcases/encryption_payload_test.h>
|
||||
#include <testcases/init_config_test.h>
|
||||
|
||||
/* output for test messages */
|
||||
extern FILE * stderr;
|
||||
@@ -104,6 +105,7 @@ test_t aes_cbc_crypter_test = {test_aes_cbc_crypter, "AES CBC"};
|
||||
test_t hmac_signer_test1 = {test_hmac_md5_signer, "HMAC MD5 signer test"};
|
||||
test_t hmac_signer_test2 = {test_hmac_sha1_signer, "HMAC SHA1 signer test"};
|
||||
test_t encryption_payload_test = {test_encryption_payload, "encryption payload test"};
|
||||
test_t init_config_test = {test_init_config, "init_config_t test"};
|
||||
|
||||
|
||||
daemon_t* charon;
|
||||
@@ -197,6 +199,7 @@ int main()
|
||||
&hmac_signer_test1,
|
||||
&hmac_signer_test2,
|
||||
&encryption_payload_test,
|
||||
&init_config_test,
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -207,8 +210,8 @@ int main()
|
||||
|
||||
tester_t *tester = tester_create(test_output, FALSE);
|
||||
|
||||
tester->perform_tests(tester,all_tests);
|
||||
//tester->perform_test(tester,&encryption_payload_test);
|
||||
//tester->perform_tests(tester,all_tests);
|
||||
tester->perform_test(tester,&init_config_test);
|
||||
|
||||
|
||||
tester->destroy(tester);
|
||||
|
||||
Reference in New Issue
Block a user