Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kstSD-0006X4-3i for pgsql-committers@arkaria.postgresql.org; Fri, 25 Dec 2020 20:12:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kstSC-0000wV-18 for pgsql-committers@arkaria.postgresql.org; Fri, 25 Dec 2020 20:12:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kstSB-0000wO-Rq for pgsql-committers@lists.postgresql.org; Fri, 25 Dec 2020 20:12:47 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kstS9-00046s-Nn for pgsql-committers@lists.postgresql.org; Fri, 25 Dec 2020 20:12:46 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kstS8-0000Sa-3h; Fri, 25 Dec 2020 15:12:44 -0500 Date: Fri, 25 Dec 2020 15:12:44 -0500 From: Bruce Momjian To: Tom Lane Cc: Justin Pryzby , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add key management system Message-ID: <20201225201244.GD19054@momjian.us> References: <20201225190935.GY30237@telsasoft.com> <1172955.1608923830@sss.pgh.pa.us> <1177207.1608925026@sss.pgh.pa.us> <20201225194125.GC19054@momjian.us> <1205031.1608925990@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1205031.1608925990@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Dec 25, 2020 at 02:53:10PM -0500, Tom Lane wrote: > Bruce Momjian writes: > > On Fri, Dec 25, 2020 at 02:37:06PM -0500, Tom Lane wrote: > >> pg_attribute_noreturn() seems like a good idea, but we're also going to > >> need dummy return statements in the callers, to satisfy compilers that > >> don't understand that. > > > Yes, done. I tested it with a non-OpenSSL configure run now and it > > worked. Thanks for the report. > > Now that it compiles cleanly, what about test cases? It looks > to me like you broke src/test/Makefile: > > @@ -30,7 +30,7 @@ endif > endif > ifeq ($(with_openssl),yes) > ifneq (,$(filter ssl,$(PG_TEST_EXTRA))) > -SUBDIRS += ssl > +SUBDIRS += ssl crypto > endif > endif Odd I am running the regression tests. > because there is no such subdirectory. Assuming that that's a > case of forgetting to "git add" the whole subdirectory, I still > don't much care for this implementation: the user should be able > to decide which subdirectories get run. Maybe more like > > ifeq ($(with_openssl),yes) > ifneq (,$(filter ssl,$(PG_TEST_EXTRA))) > SUBDIRS += ssl > endif > +ifneq (,$(filter crypto,$(PG_TEST_EXTRA))) > +SUBDIRS += crypto > +endif > endif There are no tests yet. I need to write those in TAP, and I am going to wait until I have something more substantial to test. I do have a test framework here I am using. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee