Date: Mon, 4 Dec 2017 19:45:25 +0100 From: Gert Doering Message-ID: <20171204184525.GY69387@...1296...> References: <20171202134541.7688-1-a@...2181...> <20171202134541.7688-5-a@...2181...> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9sSKoi6Rw660DLir" Content-Disposition: inline In-Reply-To: Subject: Re: [Openvpn-devel] [PATCH 5/7] Remove CIPHER_ENABLED List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Steffan Karger Cc: openvpn-devel@lists.sourceforge.net --9sSKoi6Rw660DLir Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, On Sun, Dec 03, 2017 at 03:17:51PM +0100, Steffan Karger wrote: > On 02-12-17 14:45, Antonio Quartulli wrote: > > Now that ENABLE_CRYPTO has been removed, CIPHER_ENABLED is basically > > a useless shortcut which does not really help the readability of the > > code. Call me silly, but CIPHER_ENABLED has nothing to do with ENABLE_CRYPTO, but more with "--cipher none", no? So at least the commit message is misleading... > > * Set adjustment factor for buffer alignment when no > > * cipher is used. > > */ > > - if (!CIPHER_ENABLED(c)) > > + if (!c->c1.ks.key_type.cipher) ... and I don't really find the second one more easily understandable than the first one... gert --=20 now what should I write here... Gert Doering - Munich, Germany gert@...1296... --9sSKoi6Rw660DLir Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGcBAEBAgAGBQJaJZfFAAoJEB2Cnv7KVigSdpkL/jYRsP3IV3YEju5I2kXg9qno 2I3PYnZpL6PrWj4chf/aoI9udGGiEqgmAgGW0MCQjE1hDGeBzrAjV16FW6/KfO4p +BRqpBbAJ6UnmBj4mZI/O02ntmMXvTXIhidBo4kiMsArXPd5YxKkG+/Bd4M9FQ2U cqaKCHgenW2ZPZh69s+7OVowrDkGeLZxcZ9VTIWWRDKiG18sma/hoZhrxWizfLoB n5cvWIFPOpqawMaLTJv+RH3PG6SSXm4hA743Rj7NmTGsMKjnWQ5RCsLJP9nmIchZ ozQQwHP0z6h+z/x2WJQYHlSuvLkLMDnozlMPLMutuEmIX8GxSofrQ5cioSUuBkqV 0eJWma1pRXcMb7ejeugcc+NHeLOsCcteqHGpqG1tDjXhUltglOzmbKw703Wu0gFE AtO2FkV3MdR9XThU1lZjYo6EJZAoDrESBg/3I6AOIy/nEFTpNcioOvQZB5KODpyo tebLZ2rwa8Ri58KA3ZItJHQ5hqsIwrzM6oxDxdv3Cw== =jl3t -----END PGP SIGNATURE----- --9sSKoi6Rw660DLir--