Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXFYk-00009a-W1 for pgsql-committers@arkaria.postgresql.org; Fri, 05 Jan 2018 00:08:31 +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 1eXFYk-0007sK-D5 for pgsql-committers@arkaria.postgresql.org; Fri, 05 Jan 2018 00:08:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eXFYk-0007rz-0x for pgsql-committers@lists.postgresql.org; Fri, 05 Jan 2018 00:08:30 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eXFYd-0001Lz-JT for pgsql-committers@postgresql.org; Fri, 05 Jan 2018 00:08:26 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9897B20A79; Thu, 4 Jan 2018 19:08:21 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 04 Jan 2018 19:08:21 -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=KMIH2Z YGpAKoBkVpnvOpAgOedao0EAoqaVf1U9RbBfU=; b=bmSZeC0bTQPAgf5a1oUvtE wKnoho7EFIGCE4jXbr0wXBsjFvHUFzKRaGzDEC8mQ/FJEaUhfg1+erUJ8vGpmi9P 9WfiKOPDsh8LqVkzk+oHYXi2R/cVZ5zqH1rRtqxNqUR0cIa+gGvBkPqB676ClsW3 cbzH5ID6MULYiE179IlE50Hcrj++nyTnGQT6ugl4lSx3MJPcKhkAQskMeBGKLmMW nAY5ZI1SOXV1pw9OF8SJSu65IedovyaIfI29t+IC9tcSAF8h/x3WUV62aJlNi2mJ LPi9cPjtl2WmjvQoP/yUSAXBJ1xTPGidWejF8wUO3KFMFjOm6hJP8SpP2vXZ+5fA == X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 507997E183; Thu, 4 Jan 2018 19:08:21 -0500 (EST) Date: Thu, 4 Jan 2018 16:08:20 -0800 From: Andres Freund To: Peter Eisentraut Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add missing includes Message-ID: <20180105000820.vlzd5lq2snoyfqwt@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-01-04 22:58:28 +0000, Peter Eisentraut wrote: > Add missing includes > > is necessary to look into the X509 struct, used by > ac3ff8b1d8f98da38c53a701e6397931080a39cf. That's not sufficient here: /home/andres/src/postgresql/src/backend/libpq/be-secure-openssl.c: In function ‘be_tls_get_certificate_hash’: /home/andres/src/postgresql/src/backend/libpq/be-secure-openssl.c:1269:50: error: dereferencing pointer to incomplete type ‘X509 {aka struct x509_st}’ if (!OBJ_find_sigid_algs(OBJ_obj2nid(server_cert->sig_alg->algorithm), ^~ ../../../src/Makefile.global:819: recipe for target 'be-secure-openssl.o' failed It's defined in openssl's include/internal/x509_int.h which also has the following comment: /* Internal X509 structures and functions: not for application use */ so this looks like a nonstarter approach that shouldn't be fixed with additional includes. Greetings, Andres Freund