Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1en1-0005DG-2d for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2017 20:04:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d1emz-000880-TP for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2017 20:04:21 +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 1d1emz-00087r-3P for pgsql-hackers@postgresql.org; Fri, 21 Apr 2017 20:04:21 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d1emw-0007zC-A5 for pgsql-hackers@postgresql.org; Fri, 21 Apr 2017 20:04:19 +0000 Received: by mail-lf0-x244.google.com with SMTP id x72so10633401lfb.1 for ; Fri, 21 Apr 2017 13:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=zDJgx9Dkp5S+EarDz5nQX/NoAmy0+1MmVNJ/MQMbpwk=; b=q8krmtInEi06ACDLp1JcMoUxjMzFx7OwBVU23cHfqOxgsoP3HAerTZ/9F+4D5e9Xm6 NazZ55cNYXaf8JkZGeoO7RbrDGkWD4CrOnNfH1s853vCLMCklrVYDphz0lpUNKrZ3f// 3ff6oqJ2uAHdidN+5J2In9Pwut+p+jGOtaZ/F5eEG30IoCUXsB6lfC5W6ahaoxahum3M SxLEay8IKfcwhOxmiweZI1HqYYPzBIHgBM14l8UkLEQwnAQEAKTip4X0YmGwv9MeVPaq SsRobmeTs+c5NqG6AkGyvIhsUsVpJj//p55m2eEmU6zfO5HS7aGMVd0JZXooFCWOMuEy Tpuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=zDJgx9Dkp5S+EarDz5nQX/NoAmy0+1MmVNJ/MQMbpwk=; b=Q2+XU8sXs9njMCiQaaIw/qJCfh4kSzpFk45OWYZCKaK8C+pI111M7dMl758noryRJO XcoOs1ujmzhKd2qhyC0yS3BgZkpBK9/jwnmRz5x8o39WU9JRQQulYZsqqHk6hXcyO71f Q5vqxD4JiLxrky8q0Nn0ZvkMyQP6WF6vjiF5ssg46lQtPMKWfXLGUDEq2xTfxGqx/3Um QM2BNp4530E1GvGqm0CuVhTRMhc9RxUC1b3hBnJYDDOEBear8DAzJF4aW22XkHULsX64 m73izikyhWhLPiE4uIM6HyhpbrcBg0wxIe2xyLsen1uGZQNYIR9FoQ2eRKNzPS4vtw4y xs6Q== X-Gm-Message-State: AN3rC/4sZjZeVQT9ULu9dQFIAc8FYNfPYGKdoL7b+FCJ6Xcx1n9fEA6u +UjNPbQjy/CqiA== X-Received: by 10.25.209.135 with SMTP id i129mr5191869lfg.4.1492805055761; Fri, 21 Apr 2017 13:04:15 -0700 (PDT) Received: from [192.168.1.99] (dsl-hkibrasgw1-50df7f-241.dhcp.inet.fi. [80.223.127.241]) by smtp.gmail.com with ESMTPSA id u15sm484239lja.20.2017.04.21.13.04.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Apr 2017 13:04:15 -0700 (PDT) Subject: Re: scram and \password To: Michael Paquier , Noah Misch References: <5478ab75-404f-9490-9355-dc1365ce3d7f@iki.fi> <20170410035323.GA2846583@tornado.leadboat.com> Cc: Robert Haas , Tom Lane , Jeff Janes , Joe Conway , pgsql-hackers From: Heikki Linnakangas Message-ID: <66e776c9-e02c-3683-28df-339f7f64ea66@iki.fi> Date: Fri, 21 Apr 2017 23:04:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 04/10/2017 08:42 AM, Michael Paquier wrote: > As there have been some conflicts because of the commit of SASLprep, > here is a rebased set of patches. I've committed a modified version of the first patch, to change the on-disk format to RFC 5803, as mentioned on the other thread (https://www.postgresql.org/message-id/351ba574-85ea-d9b8-9689-8c928dd0955d@iki.fi). I'll continue reviewing the rest of the patch on Monday, but one glaring issue is that we cannot add an argument to the existing libpq PQencryptPassword() function, because that's part of the public API. It would break all applications that use PQencryptPassword(). What we need to do is to add a new function. What should we call that? We don't have a tradition of using "Ex" or such suffix to mark extended versions of existing functions. PQencryptPasswordWithMethod(user, pass, method) ? - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers