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 1lOrNr-0007Y0-4o for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Mar 2021 00:28:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOrNq-0006eI-1a for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Mar 2021 00:28:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOrNo-0006e5-GT for pgsql-hackers@lists.postgresql.org; Wed, 24 Mar 2021 00:28:25 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOrNk-0002q3-VR for pgsql-hackers@lists.postgresql.org; Wed, 24 Mar 2021 00:28:24 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id BA6095C00E3; Tue, 23 Mar 2021 20:28:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 23 Mar 2021 20:28:18 -0400 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=fm1; bh=LUja0+D1wxAQH45P3cZYfi9S1cx lQSrvGAedZBwNtx0=; b=djCPYalp9lTQdyKPgdaTXSN1vqIW1yP9RCPWWX5N1x1 Omp0w8I17RRlROp9NWASlmFNg9b5oI7xcfr9OO3Kh+elENfFt9OZ4JZGqwVxnHG6 nt+krvB2DcN+F9c+k4PRqtv2CN5QaYMbAduZJNppzfcoT9yuMZKqOafJy3KmAeFO ili3XgbhWdxb7yHvFEZrr8tmUg3+pbhhuG12n23U7R353rkATJ1ZJLDB4VNs4PgH GUFZ4d5H3sXTLtJoCyy2IXPTD8nDvjRXToUMLd41uS/tJ9MShpx1T+gv7Ec1X2W+ lGu2kIWg+H+IN87wUYDEoRrvByvt2CfsdnzH1eG6T3w== 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=fm2; bh=LUja0+ D1wxAQH45P3cZYfi9S1cxlQSrvGAedZBwNtx0=; b=etA8eKmmfMg3BZeZ7SdftQ jal00E4/sO2K7CgAVERbtcz81CCsHwXfcvSNRmRDVcrBD8JYgduNdXQQjY3YnCoo TGqaDKEXsTiTFGKbDMufgvr4J6sRg0sQMLUMX/UV1cYGILh0ErWqEQUyNj0S26p4 T967oYu5L8mDhvZ62LykRJsKKlhs4gFQutOPwdfFBa9tBrhx7QwJG0p5zbXU1DFU YDlsVvXIoe8lwG2k2FNW4paLf5quLnTJICNXAA8Ea5bYjaF6qmcYLWao5vlSUcYu luyCvXdHs/UC3x4lDusBemsUifTb6JAtZns3bHR1aHvT1Jx4x6xrHjJAG9g8THFg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegjedgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii 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 50554240425; Tue, 23 Mar 2021 20:28:15 -0400 (EDT) Date: Wed, 24 Mar 2021 09:28:10 +0900 From: Michael Paquier To: Jacob Champion Cc: "daniel@yesql.se" , "sfrost@snowman.net" , "pgsql-hackers@lists.postgresql.org" , "hlinnaka@iki.fi" , "andrew.dunstan@2ndquadrant.com" , "thomas.munro@gmail.com" , "andres@anarazel.de" Subject: Re: Support for NSS as a libpq TLS backend Message-ID: References: <0F5CF84D-26F1-44D0-AEAE-E011D3CEC0E2@yesql.se> <686dd2b189ec04b161f71481f1f726255ee8224f.camel@vmware.com> <1b16041447d57b45ca273f41d26f6e298d756f99.camel@vmware.com> <04E81B50-ACE9-40D3-9C66-7041F969A958@yesql.se> <21FABD55-5F80-4D8B-B994-3DB81D8742EE@yesql.se> <20210321234950.GQ20766@tamriel.snowman.net> <743a11e6668bef648c7a53f862038e6b2fad3755.camel@vmware.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Pw0ELNWenYb+6S32" Content-Disposition: inline In-Reply-To: <743a11e6668bef648c7a53f862038e6b2fad3755.camel@vmware.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Pw0ELNWenYb+6S32 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 24, 2021 at 12:05:35AM +0000, Jacob Champion wrote: > The first database loaded by NSS_InitContext() becomes the "default" > database. This is what I'm currently hung up on. I can't figure out how > to get NSS to use the database that was loaded for the current > connection, so in my local patches for the issues above, client > certificates fail to load. I can work around it temporarily for the > tests, but this will be a problem if any libpq clients load up multiple > independent databases for use with separate connections. Anyone know if > this is a supported use case for NSS? Are you referring to the case of threading here? This should be a supported case, as threads created by an application through libpq could perfectly use completely different connection strings. -- Michael --Pw0ELNWenYb+6S32 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBah5oACgkQnvQgOdby QH0l+A//VdbcmeKXCYssiwzcFk6OMz57CvNgXrG6CA1BQ96bCAOAFXmMJqRsrCnn 9nhY9npYLkLMResjtoMX0oA9L7BTXU0zQu2F8O77TE/PHUEAXuILU6KUMeYSyK1F VQD3yxZMAdCAwcquINqMYrs8V93TMZh3pvta7PxETn8IGsvSA3shPsUebfYyfBK8 /SwhQkP/HxAFFvENBe4Qwhw4peWi4KS0zQEB4XFnDtTJUhAtgDWP7AJrsCFls8AG 9oFbPJWo+ZAQtlYS2OtKBxtXbMCT1TT8iIqnGTmY5t5QMkFh74X+QOFEdLGN4iCo GN90EC/zTORrlEZDv3Zv5PXx6Xcv65upZlqaw8VxCpHnCg74o5F9E1o4CC02nhTO 9DCFIg+JL48ptjWjpzg2iHOWS1GNiA9/RYFqQGB7MCTIMvOAORldWMoqtegOpfZY Q7l635oSx7FFAbYsU1uWIQ/AUvz801Hxkpl0mbjMuc5GvUD7vrr08X/4X9vuX5AI nBK295KN3zSwBTwMMS29gyq0LaXijAJzgWvApwDltSSnHoZryuu5arBj4rr87Wy1 qiEBq0inFdrSAQuVCBak+98//kcgi0O9Wo692bhhtTW2jyZRjlO+XEGd6aIv1bLx kkunxTlISaJurm7Gm7NmO6b1XRY0Zqd+B3J82D9qArrQYJ/ouq0= =aNRy -----END PGP SIGNATURE----- --Pw0ELNWenYb+6S32--