Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4Msf-0003Yp-OC for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Nov 2016 07:01:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4Msf-0004YV-B2 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Nov 2016 07:01:09 +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 1c4MrG-0002wE-43 for pgsql-hackers@postgresql.org; Wed, 09 Nov 2016 06:59:42 +0000 Received: from mx.wagner.pp.ru ([78.46.190.96]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4Mr9-0005c5-Tt for pgsql-hackers@postgresql.org; Wed, 09 Nov 2016 06:59:41 +0000 Received: from mail.wagner.pp.ru (unknown [192.168.217.131]) by mx.wagner.pp.ru (Postfix) with ESMTP id BADB5E09D1 for ; Wed, 9 Nov 2016 09:59:28 +0300 (MSK) Received: from fafnir.local.vm (mail.postgrespro.ru [93.174.131.138]) by mail.wagner.pp.ru (Postfix) with ESMTPSA id 30B1C20D8E for ; Wed, 9 Nov 2016 09:59:28 +0300 (MSK) Date: Wed, 9 Nov 2016 09:59:27 +0300 From: Victor Wagner To: PostgreSQL mailing lists Subject: Re: Password identifiers, protocol aging and SCRAM protocol Message-ID: <20161109095927.701c32e8@fafnir.local.vm> In-Reply-To: References: <79774ac1-df34-6b20-1659-c020c3842ce1@iki.fi> <4f3a9e71-cb1b-ca44-a780-36d503671e45@iki.fi> <20161109091309.6437a8b3@fafnir.local.vm> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.8 (----) 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 Wed, 9 Nov 2016 15:23:11 +0900 Michael Paquier wrote: > > (This is about patch 0007, not 0001) > Thanks, you are right. That's not good as-is. So this basically means > that the characters here should be from 32 to 127 included. Really, most important is to exclude comma from the list of allowed characters. And this prevents us from using a range. I'd do something like: char prinables="0123456789ABCDE...xyz!@#*&+"; unsigned int r; for (i=0;i generate_nonce needs just to be made smarter in the way it selects the > character bytes. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers