cache keys for in and outbound ESP SAs

removed redundant storing of traffic selectors in CHILD_SA (sa_policy_t)
creating TS pairs dynamically using create_policy_enumerator()
This commit is contained in:
Martin Willi
2008-10-15 12:24:44 +00:00
parent 35379b2130
commit 1df106bf39
4 changed files with 241 additions and 202 deletions
+3 -3
View File
@@ -129,9 +129,9 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
chunk_t encr_key, int_key;
ipsec_mode_t mode;
child_sa->get_stats(child_sa, &mode, &encr_alg, &encr_key,
&int_alg, &int_key, &rekey, &use_in, &use_out,
&use_fwd);
child_sa->get_stats(child_sa, &mode,
&encr_alg, &encr_key, NULL, &int_alg, &int_key, NULL,
&rekey, &use_in, &use_out, &use_fwd);
fprintf(out, "%12s{%d}: %N, %N",
child_sa->get_name(child_sa), child_sa->get_reqid(child_sa),