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 1l50SK-0004IB-UQ for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Jan 2021 06:07:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l50SJ-0004jy-Bu for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Jan 2021 06:06:59 +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 1l50SI-0004jr-Jt for pgsql-hackers@lists.postgresql.org; Thu, 28 Jan 2021 06:06:59 +0000 Received: from [66.111.4.26] (helo=out2-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l50SB-0007YD-FL for pgsql-hackers@lists.postgresql.org; Thu, 28 Jan 2021 06:06:57 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id F27425C0125; Thu, 28 Jan 2021 01:06:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 28 Jan 2021 01:06:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=Jx//m1glYGY1bACM1zYcZh2SkQa dEGkIVYXlWAK6ab0=; b=uTNBRDnVExOT8vQY46Fk6j2s4NTcVZP5WRsO/++AfrW E6qrRgjpiEiWeK5YzQ5s8QXAc7X/JlnIb9lcWVNdver9YbRu6gHq7K4AjwHsOfFQ CsDBlmSSieBx/iLPzT4XRaVUtWlQSWWo2o/lQ+Y1e48sestZQDft7Mwgpw7dylEc 4Zi2ckuSIdKS5XsrJrOu19axqTmYsSxNiY3cGRvX/Pi3vw7F7NQ67FV0KraeBw3z LPWjGerl0UNYCBg8oWGQkFxIu5gop5trJ0IBQaz6vYHBo4QPMozAFiy4HUuMqOfw 9dugmGJAFIH/7luauLA57E+UCFDv0pcAUou9jQlSArg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Jx//m1 glYGY1bACM1zYcZh2SkQadEGkIVYXlWAK6ab0=; b=HspxB7B0Xd7LdaBYmLdhBh mhOe/306YjSE3yeTNoBorqXWQbRl4Oys0Z//EMd7vtJwFLpQTvIJm1VyxDGsv7It lWSciGXixckc8iaNkZiqdYKZs1KFwEfUaSMZ06zF+S9m9ZW+iGS5xWK05CaDFQML DAS8XI1+IZEGdd8uuWDCGH+6D2xzBoFjz8UaPBdNTk14UUauDHwfUytikNtg9bcg af4LdXOFyuMKW5PhaSRrCeabl0sTgGPGiAWXGrveHvVTgTnSsQJh1YqjRnvc/cpb RpvMLa4AUzsOGEsyqkkaO4yuHfrpY/cSvWfBO4dgvqdCzxgl808B9YVMnDyJz0xg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdelgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduuddurddutddvrddukedtrd dukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 959A31080059; Thu, 28 Jan 2021 01:06:36 -0500 (EST) Date: Thu, 28 Jan 2021 15:06:32 +0900 From: Michael Paquier To: Jacob Champion Cc: "daniel@yesql.se" , "hlinnaka@iki.fi" , "pgsql-hackers@lists.postgresql.org" , "andrew.dunstan@2ndquadrant.com" , "thomas.munro@gmail.com" , "sfrost@snowman.net" , "andres@anarazel.de" Subject: Re: Support for NSS as a libpq TLS backend Message-ID: References: <7B5A88DF-863A-4B00-B841-0285C1FF70DF@yesql.se> <5F24348B-10BA-4AA1-999B-1E2AB22B4997@vmware.com> <94E22878-6289-43D5-A674-804F6CB23782@yesql.se> <8D7F95DB-8F8A-4300-BFDA-656FBAB30FE2@yesql.se> <14c55cc3114a9896a6c5fc16230a60fcef6c4819.camel@vmware.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="T8DqpODiyZlqUnPO" Content-Disposition: inline In-Reply-To: <14c55cc3114a9896a6c5fc16230a60fcef6c4819.camel@vmware.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.26 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --T8DqpODiyZlqUnPO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 27, 2021 at 06:47:17PM +0000, Jacob Champion wrote: > So to check understanding: the `openssl` config variable is still alive > for MSVC builds; it just turns that into `--with-ssl=3Dopenssl` in the > fake CONFIGURE_ARGS? Yeah, I think that keeping both variables separated in the MSVC scripts is the most straight-forward option, as this passes down a path. Once there is a value for nss, we'd need to properly issue an error if both OpenSSL and NSS are specified. > Since SSL is an obsolete term, and the choice of OpenSSL vs NSS vs > [nothing] affects server operation (such as cryptohash) regardless of > whether or not connection-level TLS is actually used, what would you > all think about naming this option --with-crypto? I.e. >=20 > --with-crypto=3Dopenssl > --with-crypto=3Dnss Looking around, curl has multiple switches for each lib with one named --with-ssl for OpenSSL, but it needs to be able to use multiple libraries at run time. I can spot that libssh2 uses what you are proposing. It seems to me that --with-ssl is a bit more popular but not by that much: wget, wayland, some apache stuff (it uses a path as option value). Anyway, what you are suggesting sounds like a good in the context of Postgres. Daniel? -- Michael --T8DqpODiyZlqUnPO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmASVGgACgkQnvQgOdby QH3i5w//fVXxHGSaiJmAAuUiis4HYtfDKWv1nctYJvRzSm7RSib+GpHcJQ99M3ob efPAQ4boU+S/V6aEbh8szKFataj065Nwx77S4tp0OR3XOHSgjqT2Wg4j5sCV+YC1 3kQkSEa6ezKtSTek29Lx+akPTF22nJJaiL1D2FUwSsAD5B0+iHcfpucfEx340yZa GvDkQL7C0BxXzeQCFWg4wY9WwTbhx8lzMmfQPfTXaPjWTKmt136MtF8eJhyggpKA YvBOVSzPH+pgMc8r0JF2tLlcpkKXL8z1wvgyhKUcvqClQ3gG5jvf+zVgY9hrosQj f5YgGb9WxFpObfcglXP+CzIMLPYRXUZaum67de+j1DumHr4qK9/9y25XhObmq9fz PDmqzcJOGaivXf5bwzPF7oWDgjK7NI7DgMneSsExGpsrxoPxRVIN3XEwiWtvv5bZ Ki9LrO8vJcjyoTlrkAGify7VxZXpAq7gW23DTFA6haasBkAPWHEpmlivJJn6mQeF 2G+YbzMpw5mOBfsGQgCRtY3/pjT92dtX1ILl03+lnQsVigiMzKWedl4sVFT6qS7D 4JYkYi+CLhNu+XNMExCFx+HOv1UJ6JSPajESfBn/sn2Uj0iLugkXIolBixn8lFiE klIzL4SJ/SrlayYeN7UQGJ39ggEZoB0lzHvVuDRyKgQ+6ENbQLw= =xcLi -----END PGP SIGNATURE----- --T8DqpODiyZlqUnPO--