From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] add missing check for Curve25519 in vpnmain.cgi Date: Mon, 09 Oct 2017 14:55:38 +0100 Message-ID: <1507557338.4045.7.camel@ipfire.org> In-Reply-To: <20171008204110.2569252c.peter.mueller@link38.eu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8866912342660077504==" List-Id: --===============8866912342660077504== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I am quite surprised that I didn't notice this earlier, but thanks for sending in the patch. I fixed the whitespace because you indented with spaces and sometimes tabs wh= ere we only use tabs. Best, -Michael On Sun, 2017-10-08 at 20:41 +0200, Peter M=C3=BCller wrote: > This fixes bug #11501 which causes IPsec connections to crash if > Curve25519 has been enabled. >=20 > Signed-off-by: Peter M=C3=BCller > --- > diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi > index f9508b53d..25551008f 100644 > --- a/html/cgi-bin/vpnmain.cgi > +++ b/html/cgi-bin/vpnmain.cgi > @@ -3125,6 +3125,8 @@ sub make_algos($$$$$) { > =20 > if ($grp =3D~ m/^e(.*)$/) { > push(@algo, "ecp$1"); > + } elsif ($grp =3D~ m/curve25519/) { > + push(@algo, "$grp"); > } else { > push(@algo, "modp$grp"); > } > @@ -3140,6 +3142,8 @@ sub make_algos($$$$$) { > # noop > } elsif ($grp =3D~ m/^e(.*)$/) { > push(@algo, "ecp$1"); > + } elsif ($grp =3D~ m/curve25519/) { > + push(@algo, "$grp"); > } else { > push(@algo, "modp$grp"); > } --===============8866912342660077504== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUFCQ2dBZEZpRUU1L3JXNWwzR0dl Mnlwa3R4Z0hudy8yK1FDUWNGQWxuYmY5b0FDZ2tRZ0hudy8y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