Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJlIt-0000cz-5Q for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Aug 2014 15:26:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XJlIs-000412-LN for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Aug 2014 15:26:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJlIr-00040t-3U for pgsql-hackers@postgreSQL.org; Tue, 19 Aug 2014 15:26:29 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJlIj-0007wF-So for pgsql-hackers@postgreSQL.org; Tue, 19 Aug 2014 15:26:27 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 5FC08560009; Tue, 19 Aug 2014 17:26:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC6B08.dip0.t-ipconnect.de [93.220.107.8]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 455C2560005; Tue, 19 Aug 2014 17:26:14 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id CC57910056D; Tue, 19 Aug 2014 17:26:13 +0200 (CEST) Date: Tue, 19 Aug 2014 17:26:13 +0200 From: Andres Freund To: Stephen Frost Cc: Heikki Linnakangas , PostgreSQL-development Subject: Re: PQgetssl() and alternative SSL implementations Message-ID: <20140819152613.GC30525@awork2.anarazel.de> References: <53F1E989.8020609@vmware.com> <20140819144841.GA16422@tamriel.snowman.net> <20140819145547.GB30525@awork2.anarazel.de> <20140819150507.GB16422@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140819150507.GB16422@tamriel.snowman.net> X-Pg-Spam-Score: -2.6 (--) 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 2014-08-19 11:05:07 -0400, Stephen Frost wrote: > * Andres Freund (andres@2ndquadrant.com) wrote: > > On 2014-08-19 10:48:41 -0400, Stephen Frost wrote: > > > At first blush, I'd say a whole bunch.. Off the top of my head I can > > > think of: > > [...] > > > I'm not really sure we need all that. We're not building a general ssl > > library abstraction here. > > Really? I'm pretty sure that's exactly what we're doing. No. We should build something that's suitable for postgres, not something general. We'll fail otherwise. For anything fancy the user has to look at the certificate themselves. We should make it easy to get at the whole certificate chain in a consistent manner. > Telling users they simply can't have this information isn't > acceptable. Meh. Why? Most of that isn't something a normal libpq user is going to need. > > What I'm wondering is whether we should differentiate 'standard' > > attributes that we require from ones that a library can supply > > optionally. If we don't we'll have difficulty enlarging the 'standard' > > set over time. > > If we end up not being able to provide everything for all of the > libraries we support then perhaps we can document which are available > from all of them, but I'd hope the list of "only in X" is pretty small. I'm pretty sure that we can't build a reasonable list of the information exposed by any library. Especially as we're likely going to need some mapping to agree to map to the common names. I'd just go for plain names for standard attributes and X-$library- for library specific stuff. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers