References: <20211019034118.28987-1-selva.nair@...277...> <20211019034118.28987-2-selva.nair@...277...> From: Arne Schwabe Message-ID: <11ff0dad-e26e-358b-11d5-ecf855e29f4c@...1227...> Date: Tue, 19 Oct 2021 12:24:41 +0200 MIME-Version: 1.0 In-Reply-To: <20211019034118.28987-2-selva.nair@...277...> Content-Language: en-GB Subject: Re: [Openvpn-devel] [PATCH 2/3] Remove error injection into OpenSSL from cryptoapi.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: selva.nair@...277..., "openvpn-devel@lists.sourceforge.net" Am 19.10.21 um 05:41 schrieb selva.nair@...277...: > From: Selva Nair > > There is no advantage in injecting/redirecting errors into OpenSSL > as we can, and we do, report these directly using our own logging > functions. This code probably originated from CAPI engine where > such usage made sense. > > And, in cases when the error is within OpenSSL, guessing a > reason (like out of memory) and inserting it into the > OpenSSL error stack looks pointless. > > As a bonus, the code gets leaner and a lot less cruft. > > Some error messages are slightly edited and all near-fatal > errors are logged with M_NONFATAL and "Error in cryptoapicert:" > prefix. > > Also remove some defines for mingw that we do not need. > > Signed-off-by: Selva Nair Acked-By: Arne Schwabe Arne