Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ibGTR-00013g-9V for pgsql-committers@arkaria.postgresql.org; Sun, 01 Dec 2019 04:04:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ibGTP-0003lv-IR for pgsql-committers@arkaria.postgresql.org; Sun, 01 Dec 2019 04:04:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ibGTP-0003lo-7K for pgsql-committers@lists.postgresql.org; Sun, 01 Dec 2019 04:04:39 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ibGTM-0003YO-Kg for pgsql-committers@lists.postgresql.org; Sun, 01 Dec 2019 04:04:38 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 185C5681; Sat, 30 Nov 2019 23:04:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 30 Nov 2019 23:04:35 -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=FXN2kwRy81NQBHMRtBDi+7G/xyr Gu8EnsVh9M7BAlqg=; b=MKIUiOf/545ZzpTQ9bCycsiXTXprwjaxi47+UMEKWkB ZTh2NVqDqbg0fFRcBo/+Fpos3UB9Fj46rGiJ5Sx6ISka2J/+bUSq3Ej3QudAgvJ7 R7x7SQtcxFycJePsni9DGDYmu8BjFjvzr2MmkEjA9NzlcR6hTensDJEoj8quBBrz KAZ/ZbG3X61n0200iVmcZe8W2Lm5S+cqTGHqod0xkzi4At1OdzjsF4BAqd7uzwhn mZFKKpH7Sy4mwEjN9eWflZrj0O2rG0ZsBEDwRloM1R0YjYKCjdH7OtW9uevgcpzK HneLZOWYAtCI3Zk/aH3we6T7t/WIycDOUzMOtA36yLw== 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=FXN2kw Ry81NQBHMRtBDi+7G/xyrGu8EnsVh9M7BAlqg=; b=vOaqLbQjrwXCclZqbUU2tC T0X58lJlA5w0AlaUOe2PXZXI1FGIx489srYuNQzhl9tncY3rbdCWs99rjEr9VuLE c/YuArzWKymKiSEKxspU7NeEM6Qc5Dmm6EW1DrM76YK9NydszMjZfaok8W8p8Kmn Sq9uC1x0jTUd9x5H8gcWmhfF6X+E2CjBspnStilqElwsW6QLkfsW8eq2yHg8tRWI MHimrkekZweazDjv6rmODB0ekS4IgH7gyxfU1adf0LP9TQg+2yOjzhrouzeKhq5u OfdL6frHLNLMh/jXN0IJ4j8VMbkVdb/uC8v4Sw02ufjGYo2KhFtSQHWW34BgdGzg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudejvddgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepudduuddruddtvddrudektddrudekheenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt 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 30C648005B; Sat, 30 Nov 2019 23:04:32 -0500 (EST) Date: Sun, 1 Dec 2019 13:04:29 +0900 From: Michael Paquier To: Andrew Dunstan Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: libq support for sslpassword connection param, DER format keys Message-ID: <20191201040429.GM2355@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sB5q8U+2Z60V3VP3" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --sB5q8U+2Z60V3VP3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andrew, On Sat, Nov 30, 2019 at 08:45:25PM +0000, Andrew Dunstan wrote: > libq support for sslpassword connection param, DER format keys >=20 > This patch providies for support for password protected SSL client > keys in libpq, and for DER format keys, both encrypted and unencrypted. > There is a new connection parameter sslpassword, which is supplied to > the OpenSSL libraries via a callback function. The callback function can > also be set by an application by calling PQgetSSLKeyPassHook(). There is > also a function to retreive the connection setting, PQsslpassword(). Windows build is broken after this commit at link time on most animals: libpqdll.def : error LNK2001: unresolved external symbol PQdefaultSSLKeyPassHook [C:\buildfarm\buildenv\HEAD\pgsql.build\libpq.vcxproj] libpqdll.def : error LNK2001: unresolved external symbol PQgetSSLKeyPassHook [C:\buildfarm\buildenv\HEAD\pgsql.build\libpq.vcxproj] libpqdll.def : error LNK2001: unresolved external symbol PQsetSSLKeyPassHook [C:\buildfarm\buildenv\HEAD\pgsql.build\libpq.vcxproj] I have not checked the build, but it seems like the indentation in exports.txt is not right. Your patch has added tabs for the new entries, but spaces have been used up to now. -- Michael --sB5q8U+2Z60V3VP3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3jO80ACgkQnvQgOdby QH3s8xAApf5Pe3UsVcyYGLCy1o/z8GZyOj4puP5ZgYJQPs7fll26HEB3Ges4bjDY qDPLqgTP28EWB5CVxQWFHXeXc/6eoSPe7gDoX/z0tRAgUFpphMyi2hs/5q03PgAl ZjjMOSnUPrsgr/QPRCPcRt77Lpu+n6ckeqEEjs9w2iCFynDSY1SgTkeo5LRsGZfi mAY4CA5+zbgg3xIB0cSa2H7UQDJuJcvn7Nh77LxdKpSp+ajdcT3XErCK6ee9frXb EkKt5Gc1smBO+1onYNPgBsQ+gNCrIwgIXIqpjSNo0fvIWMrm6dXE1SgMRA8sI+/O ajT2iu1x2HA5me5P/udFSPp92H4oKkquHwEOkt9o6Cht9/eewwnIeqS3mKRq8cOn 3pXlDCR9iBENWbDYYugnM2jr643gnsWIHUEUuQUEmjfc/7Rf7297CURMMzCePWAB 6sdOXOYrMy3rt93m5SWTOE20OHG0vuk1ckAk4uNxpGIgVT68Yx81FhqHvpnW9/b4 sJUV/s6xoIpUK+vG5bi7qXoVGuFENLOtp3AY3fOrdbe2JAbu3K8DqVK5R9WL5xyv Fa9ZZQfq8kPvMsMhNjBsu2OwRdhddLx38v0/VNs+wWfSwE+tpuZND3JyN13if8HH 8uuace/mSJ45ZlRDX3T86vNrEjyQjmzI6Lf6lCAR0nU3rMibxxM= =Bk9V -----END PGP SIGNATURE----- --sB5q8U+2Z60V3VP3--