Message-ID: Date: Wed, 8 Feb 2023 12:16:50 +0100 MIME-Version: 1.0 Content-Language: en-GB References: <20230204004512.250271-2-selva.nair@...277...> <20230204064010.257925-1-selva.nair@...277...> <20230204064010.257925-2-selva.nair@...277...> <74a4194f-2d86-2bce-195b-0cae9f294597@...1227...> From: Arne Schwabe In-Reply-To: Subject: Re: [Openvpn-devel] [PATCH v2 3/3] Add a unit test for functions in cryptoapi.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit To: Selva Nair Cc: openvpn-devel@lists.sourceforge.net Am 08.02.23 um 02:05 schrieb Selva Nair: > Hi, > > On Tue, Feb 7, 2023 at 7:18 PM Arne Schwabe > wrote: > > Am 04.02.23 um 07:40 schrieb selva.nair@...277... > : > > From: Selva Nair > > > > > - Though named cryptoapi_testdriver, right now this only tests > >    parsing of thumbprint specified as a selector for --cryptioapicert > >    option. More tests coming.. > > > > v2: a line that belongs here was mistakenly included in the previous > > commit. Corrected. > > > > Signed-off-by: Selva Nair > > > While a good step, this still has problems. With OpenSSL 1.1.1 it still > tries to run the check-engine.sh script and unsurprisingly fails: > > ---- begin log.txt ---- > ./check_engine_keys.sh: 25: ../../../src/openvpn/openvpn: not found > --- end log.txt --- > Key mismatch not detected > FAIL: check_engine_keys.sh > > This can be fixed by: > > --- a/tests/unit_tests/engine-key/Makefile.am > +++ b/tests/unit_tests/engine-key/Makefile.am > @@ -12,7 +12,9 @@ TESTS_ENVIRONMENT = srcdir="$(abs_srcdir)"; \ >          top_srcdir="$(top_srcdir)"; \ >          export srcdir builddir top_builddir top_srcdir; > > +if !CROSS_COMPILING >   TESTS = check_engine_keys.sh > +endif >   check_engine_keys.sh: $(conffiles) > >   CLEANFILES = \ > > > Thanks for this. I added this to 2/3 where it belongs and submitted it > as v3 2/3. With that, this patch should be okay as is. > > For those not following closely, this patch  should be applied after the > cryptoapi patch set where the function being tested here is introduced. > > Selva No, I think this that is independent. This is about the engine keys support added by James Bottomley. I needed and tested this patch without the cryptoapi patch. Arne