[Openswan dev] fix for sha2_truncbug-option in whack

Andrey Alexandrenko aalexandrenko at telco-tech.de
Thu Sep 20 06:48:01 EDT 2012


Hi folks,

whack in 3.6.38 do not accept 'sha2_truncbug' with arguments like '--sha2_truncbug=yes'. My patch fixes that.

--- a/programs/pluto/whack.c
+++ b/programs/pluto/whack.c
@@ -662,7 +662,7 @@ static const struct option long_opts[] = {
     { "tunnelipv4", no_argument, NULL, CD_TUNNELIPV4 + OO },
     { "tunnelipv6", no_argument, NULL, CD_TUNNELIPV6 + OO },
     { "pfs", no_argument, NULL, CD_PFS + OO },
-    { "sha2_truncbug", no_argument, NULL, CD_SHA2_TRUNCBUG + OO },
+    { "sha2_truncbug", required_argument, NULL, CD_SHA2_TRUNCBUG + OO },
     { "aggrmode", no_argument, NULL, CD_AGGRESSIVE + OO },
     { "disablearrivalcheck", no_argument, NULL, CD_DISABLEARRIVALCHECK + OO },
     { "initiateontraffic", no_argument, NULL

Regards, Andrey

PS. '--sha2_truncbug' (without arguments) causes segmentation fault in whack.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openswan.org/pipermail/dev/attachments/20120920/0984bca1/attachment.html>


More information about the Dev mailing list