Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYy1b-0006Dz-ON for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jan 2018 17:49:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYy1b-0005CM-1K for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Jan 2018 17:49:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eYy1a-0005C5-H3 for pgsql-hackers@lists.postgresql.org; Tue, 09 Jan 2018 17:49:22 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eYy1S-0002Zs-A4 for pgsql-hackers@postgresql.org; Tue, 09 Jan 2018 17:49:20 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 3547F20BC2; Tue, 9 Jan 2018 12:49:12 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Tue, 09 Jan 2018 12:49:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=SlYI2d GcyuWlo69UvWt5w1g56Wnc7wz3A3vbg59u4aQ=; b=OGZT9jcbXlO/rjfLoNKf7T 4MrLBwcgKnVwd2yeGoCKAfvYLIthveFdhsSfQ0A6cbVXXRcq/Jf/5yna+8zXdiEy 8QlvZuoqDY3FKlOIKBjOiAixyOL1G8YKo4nvgogALpBYWR8RWTx9OZvovJ3rhJ+B 5FzGLJ8tidmuf1JK8IuX+10rHNaHU14FRJS3j39iOVMK1PrD54tC4TOBfYzpCNsN P/rlP4+pUwec6XW/emf1BO66O70iIF96n9pgu/BY06TSjBO1mtXlY4rXJYJRV4Aj EiNt7GSisp9aq1Wut7HKUKIbVp7RhSzIlfXjVmJnxaKngmKp1EakmgcDhkFYj1pw == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id C443224853; Tue, 9 Jan 2018 12:49:11 -0500 (EST) Subject: Re: pgsql: Implement channel binding tls-server-end-point for SCRAM To: Michael Paquier , Alvaro Herrera References: <517b2640-dfea-ca7f-220c-1d4f482f6fc4@2ndquadrant.com> <20180105175627.tndhtwsztuekz54n@alvherre.pgsql> <20180108131411.GA76418@paquier.xyz> Cc: Robert Haas , Thomas Munro , "pgsql-hackers@postgresql.org" From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <4f1521c4-0d8a-5567-fab7-e3b410dd7404@2ndquadrant.com> Date: Tue, 9 Jan 2018 12:49:11 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180108131411.GA76418@paquier.xyz> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/8/18 08:14, Michael Paquier wrote: > On Sat, Jan 06, 2018 at 09:10:51AM +0900, Michael Paquier wrote: >> On Sat, Jan 6, 2018 at 2:56 AM, Alvaro Herrera wrote: >> Good idea as a whole, but I don't think this is the right approach. As >> we include $(bindir) in PATH when running the prove command, why not >> getting the include path from "pg_config --includedir"? > > So, I have been looking at that, and I propose the following > counter-patch which implements this idea by adding a new routine as > TestLib::config_check which is able to check within pg_config.h if a > given regexp matches or not for the installation on which TAP tests are > being run. I have tested with Postgres compiled with both OpenSSL 1.0.1 > and 1.0.2, in which case the connection test respectively fails and > passes, causing the test to be correctly handled. This is based on > Peter's patch upthread. Committed. I like counter-patches. (I renamed the function a bit to check_pg_config, to make the naming similar to other functions in TestLib.) -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services