aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/testing/child_sa_test.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-06-07 13:26:23 +0000
committerMartin Willi <martin@strongswan.org>2006-06-07 13:26:23 +0000
commit8d77eddec2bddbbf44eeec1b95c44a69426c87a6 (patch)
treeb6cc5552d9f19357d9b789ee18d858236089da82 /src/charon/testing/child_sa_test.c
parenta401efd09157382ba95a398e71995fd67a5fd337 (diff)
downloadstrongswan-8d77eddec2bddbbf44eeec1b95c44a69426c87a6.tar.bz2
strongswan-8d77eddec2bddbbf44eeec1b95c44a69426c87a6.tar.xz
further work for rekeying:
get liftimes from policy added new state initiation of rekeying done proposal redone: removed support for AH+ESP proposals
Diffstat (limited to 'src/charon/testing/child_sa_test.c')
-rw-r--r--src/charon/testing/child_sa_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/charon/testing/child_sa_test.c b/src/charon/testing/child_sa_test.c
index 0cf354c26..f36ab74d4 100644
--- a/src/charon/testing/child_sa_test.c
+++ b/src/charon/testing/child_sa_test.c
@@ -49,14 +49,14 @@ void test_child_sa(protected_tester_t *tester)
remote_me = host_create(AF_INET, "192.168.0.3", 0);
remote_other = host_create(AF_INET, "192.168.0.4", 0);
- local_sa = child_sa_create(local_me, local_other);
- remote_sa = child_sa_create(remote_me, remote_other);
+ local_sa = child_sa_create(local_me, local_other, 5, 10);
+ remote_sa = child_sa_create(remote_me, remote_other, 5, 10);
- proposal1 = proposal_create(1);
- proposal1->add_algorithm(proposal1, PROTO_ESP, ENCRYPTION_ALGORITHM, ENCR_AES_CBC, 16);
+ proposal1 = proposal_create(PROTO_ESP);
+ proposal1->add_algorithm(proposal1, ENCRYPTION_ALGORITHM, ENCR_AES_CBC, 16);
- proposal2 = proposal_create(2);
- proposal2->add_algorithm(proposal2, PROTO_AH, INTEGRITY_ALGORITHM, AUTH_HMAC_SHA1_96, 0);
+ proposal2 = proposal_create(PROTO_AH);
+ proposal2->add_algorithm(proposal2, INTEGRITY_ALGORITHM, AUTH_HMAC_SHA1_96, 0);
list = linked_list_create();
list->insert_last(list, proposal1);