Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsRQC-0003CG-5a for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Oct 2016 09:26:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bsRQB-0001OX-Go for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Oct 2016 09:26:27 +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 1bsRQA-0001OM-Vz for pgsql-bugs@postgresql.org; Fri, 07 Oct 2016 09:26:27 +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 1bsRQ8-0002XX-JG for pgsql-bugs@postgresql.org; Fri, 07 Oct 2016 09:26:25 +0000 Received: by mail-lf0-x244.google.com with SMTP id s64so2347401lfs.2 for ; Fri, 07 Oct 2016 02:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=UU/WfA8k2GvH9mQkO/GcYo8jnhqbtRc+uVUYQpkVzpA=; b=LbDUtSFk2bt5rfzm/tsJFXjjM67lJEgIVhXd4FZxjL4bHJjA1y+5J/aWy4OnaqNjky KQAnPdSP+MTYA0CkOI3EYnoo6XqcrVgibBCZpIUvlp7EhjdJBuF7fclnbbDLFD5nWTaQ 5qQP/T5sNak+0CEBxT9ZS8xdoGWZiPLn+XomPll/MJQJnAtWtTTzT62jRkU/LaijO1dO t6r1s0VbZaC1nsNezmmEYRDjYEcOtwouyo+Zbd3kMXVjEDQESLp83gjxh9XZI14B0+9t zcMwi3rYnVUcq+hUUYKlhXr23WF/t7A7qgX2JFucXJmrbf7hZyBvaGpqMOWWXTwTcm2R 9upA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=UU/WfA8k2GvH9mQkO/GcYo8jnhqbtRc+uVUYQpkVzpA=; b=PXRZGNonBUwyieMVBJ7zK/jebf5St98K+24xQdC65CsajoHoo5xrfyUM+5HnGrkNzY bKl1yKlx9JUFRdfUWsBD4Uik0/dWxY7Czw65OaiDh+76pAgafbe/Mmfqb/60v3l6k7/Z x1tsZDEgB6+rgwu7ri3yKlxc9M4Wie/xzQVKfeIcoQAi6iJCD3CPaHDILMGLRLdsmtJI gu9tDPfijFukS179JuBp9wNDDzCJQTT538WIErFwCv60gqZdMhRCDcUVowx+tj4qbZGF ZcB0bB1e55E3uuWIsFeG3d1gmxmHBLQN5D3BCgsK3xlFX88SXASRguLzoXl5geiSiwhd EFRA== X-Gm-Message-State: AA6/9RkKTVT2rVsXZmI0J53CWvr7j0eWUeAu5kUgQGYkpjkqCKfI38sCleOe4stKbPE0kA== X-Received: by 10.25.170.213 with SMTP id t204mr8113493lfe.121.1475832381588; Fri, 07 Oct 2016 02:26:21 -0700 (PDT) Received: from [192.168.1.111] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id y7sm3445534lfd.18.2016.10.07.02.26.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Oct 2016 02:26:20 -0700 (PDT) Subject: Re: BUG #14329: libpq doesn't send complete client certificate chain on first SSL connection To: "Zuk, Kacper" , "pgsql-bugs@postgresql.org" References: <20160920101051.1355.79453@wrigleys.postgresql.org> From: Heikki Linnakangas Message-ID: <1d89f547-27ba-1d4d-4a4a-d54439de7afa@iki.fi> Date: Fri, 7 Oct 2016 12:26:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.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.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 10/05/2016 12:10 PM, Heikki Linnakangas wrote: > I came up with the attached patch for this. As threatened, it uses a > separate SSL context for each connection. That simplifies the code > somewhat, and fixes the bugs. Kacper's test case is included in this. > (This is for git master, stable branches will need small tweaking to > make the patch apply.) I hear no objections, so committed and back-patched that. Thanks for the report and analysis, Kacper! - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs