Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWF2d-00FDha-Qh for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 13:27:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tWF2c-00GIXF-Dd for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 13:27:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWF2b-00GINI-3H for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2025 13:27:09 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tWF2W-000uiE-33 for pgsql-hackers@postgresql.org; Fri, 10 Jan 2025 13:27:08 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 1DC4A11400B6; Fri, 10 Jan 2025 08:27:03 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Fri, 10 Jan 2025 08:27:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1736515623; x=1736602023; bh=cl0HS2Cf1GfqyivNODwgLXDa2yFMOfjp GscwvBOwtec=; b=GmFEcmMOV9xcwvP9i/lsmff45JXdCiKamGb2cNINNdkmX5hV G3QlaUkCJmP/+g9of6IS7BY5nxSVvPJ+KkjUHKU9MY47lTSgBssIkI559oXz5302 kGur5dEFcz/qgKkKiVISJgwqTT/36iUV8gDku3JvvFcoHlC7ALv31j1d6AAh5WLF r9xI8ClOb02n6YrJQ1xfc62jt5cUOhVoabD6ChXtzVeObcRn5WvEb6qj5GMY48+A /MSsMq2xvT3Scftha0kTjV8RfAjyxBtHUqTWaQ1NRIIlY2+SIEyAP5w+xuZvmfpf Ob609fdIxcxEchWqOnqTamKdjRCXFBtjs0f/JQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1736515623; x= 1736602023; bh=cl0HS2Cf1GfqyivNODwgLXDa2yFMOfjpGscwvBOwtec=; b=H ed0BkTfE49C36UCB8PQGJAqOPFhI9gsqCCsUZy5UZgdRZGl+rv/jCZ3aKPFQtFG8 Syp6rUl6adIASZTRua1tSTM1WV5a1vlL0/VRShy651kGq/ZagEwrJXkAv8MWR0fO 63iMcJq0dSyJDzC0jzRhP+jb3eZ5vUOEeJJLyMPwIdBhIGQoTr5Lk1zjkpEoWbK7 uqi8GXY/j3JrJCDWLmweMDjzhWi0fGt/EHCrrusy2EUOmlZyjcTIj3IaBYdNbXHB wv36XSVHjuN/lJI3bASsZJEqYUp+qvuULpaA62gdOTJRW2+vtSXGcfUtWFcjGG+L ZEibWPPWDNL3JO6OuBCHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudegkedghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvg hnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepgfejtdfhkeeftdeugfeileeh teeljeeghfeuledthfeutedvffdukeefjefhgeehnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdho rhhgpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhope hjrggtohgsrdgthhgrmhhpihhonhesvghnthgvrhhprhhishgvuggsrdgtohhmpdhrtghp thhtohepuggrnhhivghlseihvghsqhhlrdhsvgdprhgtphhtthhopegrhhestgihsggvrh htvggtrdgrthdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgv shhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Jan 2025 08:27:01 -0500 (EST) Message-ID: <06102deb-00ef-431d-a3ea-65afb246700a@eisentraut.org> Date: Fri, 10 Jan 2025 14:27:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER To: Jacob Champion Cc: Daniel Gustafsson , Antonin Houska , PostgreSQL Hackers References: <6bde5f56-9e7a-4148-b81c-eb6532cb3651@eisentraut.org> <9B417838-B872-453D-BBFB-99FA957EB723@yesql.se> <54c008ad-1c23-47d8-ba6c-bed98a39c31c@eisentraut.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 09.01.25 20:18, Jacob Champion wrote: > It'd be sad to copy-paste the API bug into a new place, though. If > we're going to disconnect this API from SOCKET, can we use uintptr_t > instead on Windows? If someone eventually adds an alternative to > PQsocket(), as Tom suggested in [2], it'd be nice not to have to > duplicate this callback too. Assuming that uintptr_t is the right underlying type for SOCKET, that seems ok. But also note that #ifdef WIN32 might not work because WIN32 is defined by the PostgreSQL build system, not by the compiler (see src/include/port/win32.h).