References: <20210406162518.4075-1-arne@...1227...> <20210406162518.4075-5-arne@...1227...> <59fa6949-300a-d13d-efb8-e3ba128ce6c2@...2181...> From: Arne Schwabe Message-ID: Date: Wed, 7 Apr 2021 00:51:41 +0200 MIME-Version: 1.0 In-Reply-To: <59fa6949-300a-d13d-efb8-e3ba128ce6c2@...2181...> Content-Language: en-GB Subject: Re: [Openvpn-devel] [PATCH 5/5] Remove OpenSSL configure checks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Antonio Quartulli , openvpn-devel@lists.sourceforge.net > I like the new approach a lot. > It definitely helps keeping track of "what compat code do we need? and > for which version?" > > Just one suggestion: > I think it would still be useful to add a comment on the #endif line to > explicitly say what if we are closing. > > i.e: > > #endif /* OPENSSL_VERSION_NUMBER < 0x10101000L && > !defined(ENABLE_CRYPTO_WOLFSSL) */ > > That helps your brain when the corresponding #if is far away or you have > more than one nearby. > >\ Just running uncrustify on the file will just add that one comment -#endif +#endif /* if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(ENABLE_CRYPTO_WOLFSSL) */ So if that can be done at commit time that would avoid a V2 but I can also send a V2 with only that change if that is preferred. Arne