suppress listing of integrity algorithm if it is undefined

This commit is contained in:
Andreas Steffen
2008-05-17 21:52:58 +00:00
parent 15c508c708
commit a327ee9589
2 changed files with 13 additions and 7 deletions
+10 -4
View File
@@ -125,13 +125,19 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
{
fprintf(out, "-%d", encr_len);
}
fprintf(out, "/");
if (int_alg != AUTH_UNDEFINED)
{
fprintf(out, "/");
}
}
fprintf(out, "%N", integrity_algorithm_names, int_alg);
if (int_len)
if (int_alg != AUTH_UNDEFINED)
{
fprintf(out, "-%d", int_len);
fprintf(out, "%N", integrity_algorithm_names, int_alg);
if (int_len)
{
fprintf(out, "-%d", int_len);
}
}
fprintf(out, ", rekeying ");