same format as IKEv1

This commit is contained in:
Andreas Steffen
2009-05-19 22:12:29 +02:00
parent 0be0c52624
commit e36c67aca4
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -645,7 +645,7 @@ static int print_alg(private_proposal_t *this, char **dst, size_t *len,
} }
if (size) if (size)
{ {
written += print_in_hook(*dst, *len, "-%d", size); written += print_in_hook(*dst, *len, "_%u", size);
} }
} }
enumerator->destroy(enumerator); enumerator->destroy(enumerator);
+2 -2
View File
@@ -193,7 +193,7 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
fprintf(out, "%N", encryption_algorithm_names, encr_alg); fprintf(out, "%N", encryption_algorithm_names, encr_alg);
if (encr_size) if (encr_size)
{ {
fprintf(out, "-%d", encr_size); fprintf(out, "_%u", encr_size);
} }
} }
if (int_alg != AUTH_UNDEFINED) if (int_alg != AUTH_UNDEFINED)
@@ -201,7 +201,7 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
fprintf(out, "/%N", integrity_algorithm_names, int_alg); fprintf(out, "/%N", integrity_algorithm_names, int_alg);
if (int_size) if (int_size)
{ {
fprintf(out, "-%d", int_size); fprintf(out, "_%u", int_size);
} }
} }
} }