<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi folks,<br>
<br>
whack in 3.6.38 do not accept 'sha2_truncbug' with arguments like '--sha2_truncbug=yes'. My patch fixes that.<br>
<br>
--- a/programs/pluto/whack.c<br>
+++ b/programs/pluto/whack.c<br>
@@ -662,7 +662,7 @@ static const struct option long_opts[] = {<br>
{ "tunnelipv4", no_argument, NULL, CD_TUNNELIPV4 + OO },<br>
{ "tunnelipv6", no_argument, NULL, CD_TUNNELIPV6 + OO },<br>
{ "pfs", no_argument, NULL, CD_PFS + OO },<br>
- { "sha2_truncbug", no_argument, NULL, CD_SHA2_TRUNCBUG + OO },<br>
+ { "sha2_truncbug", required_argument, NULL, CD_SHA2_TRUNCBUG + OO },<br>
{ "aggrmode", no_argument, NULL, CD_AGGRESSIVE + OO },<br>
{ "disablearrivalcheck", no_argument, NULL, CD_DISABLEARRIVALCHECK + OO },<br>
{ "initiateontraffic", no_argument, NULL<br>
<br>
<font size="2"><span style="font-size:10pt;">Regards, Andrey</span></font><br>
<br>
PS. '--sha2_truncbug' (without arguments) causes segmentation fault in whack.<br>
</div>
</body>
</html>