aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/testcases/child_sa_test.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-03-24 15:37:49 +0000
committerMartin Willi <martin@strongswan.org>2006-03-24 15:37:49 +0000
commit9c781c152ad66a73139447e40a2081c38080c651 (patch)
treee214ab37398230685621ac3732444e279c40b785 /Source/charon/testcases/child_sa_test.c
parentdec598220b9a293c4ec75e593ab642a8945fa4fc (diff)
downloadstrongswan-9c781c152ad66a73139447e40a2081c38080c651.tar.bz2
strongswan-9c781c152ad66a73139447e40a2081c38080c651.tar.xz
- starter work on asn1 with der de/encoder
- RSA private and public key can load read key from ASN1 DER - some other fixes here and there
Diffstat (limited to 'Source/charon/testcases/child_sa_test.c')
-rw-r--r--Source/charon/testcases/child_sa_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/testcases/child_sa_test.c b/Source/charon/testcases/child_sa_test.c
index 09b49b78a..0a3aec9f2 100644
--- a/Source/charon/testcases/child_sa_test.c
+++ b/Source/charon/testcases/child_sa_test.c
@@ -54,10 +54,10 @@ void test_child_sa(protected_tester_t *tester)
remote_sa = child_sa_create(remote_me, remote_other);
proposal1 = proposal_create(1);
- proposal1->add_algorithm(proposal1, ESP, ENCRYPTION_ALGORITHM, ENCR_AES_CBC, 16);
+ proposal1->add_algorithm(proposal1, PROTO_ESP, ENCRYPTION_ALGORITHM, ENCR_AES_CBC, 16);
proposal2 = proposal_create(2);
- proposal2->add_algorithm(proposal2, AH, INTEGRITY_ALGORITHM, AUTH_HMAC_SHA1_96, 0);
+ proposal2->add_algorithm(proposal2, PROTO_AH, INTEGRITY_ALGORITHM, AUTH_HMAC_SHA1_96, 0);
list = linked_list_create();
list->insert_last(list, proposal1);