same format as IKEv1
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 19 May 2009 20:12:29 +0000 (22:12 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 19 May 2009 20:12:29 +0000 (22:12 +0200)
src/charon/config/proposal.c
src/charon/plugins/stroke/stroke_list.c

index 877b0f4..e2dfcca 100644 (file)
@@ -645,7 +645,7 @@ static int print_alg(private_proposal_t *this, char **dst, size_t *len,
                }
                if (size)
                {
-                       written += print_in_hook(*dst, *len, "-%d", size);
+                       written += print_in_hook(*dst, *len, "_%u", size);
                }
        }
        enumerator->destroy(enumerator);
index d88c3c6..e45b3a9 100644 (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);
                                        if (encr_size)
                                        {
-                                               fprintf(out, "-%d", encr_size);
+                                               fprintf(out, "_%u", encr_size);
                                        }
                                }
                                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);
                                        if (int_size)
                                        {
-                                               fprintf(out, "-%d", int_size);
+                                               fprintf(out, "_%u", int_size);
                                        }
                                }
                        }