[Openswan dev] minor difference between alg_info_snprint and alg_info_snprint_ike

Mark-Andre Hopf mhopf at innominate.com
Wed Jun 25 06:24:24 EDT 2008


Hi,

while looking around the OpenSwan 2.6.14 sources, I ran across a minor
difference between

  alg_info.c: alg_info_snprint(...)

and

  programs/pluto/plutoalg.c: alg_info_snprint_ike(...)

and I am under the impression that the patch below wouldn't hurt. ;)

Mark

--- programs/pluto/plutoalg.c~  2008-06-25 12:11:17.000000000 +0200
+++ programs/pluto/plutoalg.c   2008-06-25 12:11:17.000000000 +0200
@@ -335,7 +335,7 @@
                ret=snprintf(ptr, buflen, "%s(%d)_%03d-%s(%d)_%03d-%d, "
                             , enum_name(&oakley_enc_names, ike_info->ike_ealg)+sizeof("OAKLEY")
                             , ike_info->ike_ealg, eklen
-                            , enum_name(&auth_alg_names, ike_info->ike_halg)+sizeof("AUTH_ALGORITHM_HMAC")
+                            , enum_name(&oakley_hash_names, ike_info->ike_halg)+sizeof("OAKLEY")
                             , ike_info->ike_halg, aklen
                             , ike_info->ike_modp);
                ptr+=ret;


More information about the Dev mailing list