pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build
4+ messages / 3 participants
[nested] [flat]

* pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build
@ 2020-04-17 18:19 Andrew Dunstan <andrew@dunslane.net>
  2020-04-17 19:27 ` Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Daniel Gustafsson <daniel@yesql.se>
  0 siblings, 1 reply; 4+ messages in thread

From: Andrew Dunstan @ 2020-04-17 18:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Only provide new libpq sslpasskey hook for openssl-enabled builds

In commit 4dc6355210 I neglected to put #ifdef USE_OPENSSL around the
declarations of the new items. This is remedied here.

Per complaint from Daniel Gustafsson.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9e24109f1a4e4d8d1d372b004d6a0dd06e673fe7

Modified Files
--------------
src/interfaces/libpq/libpq-fe.h | 2 ++
1 file changed, 2 insertions(+)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build
  2020-04-17 18:19 pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Andrew Dunstan <andrew@dunslane.net>
@ 2020-04-17 19:27 ` Daniel Gustafsson <daniel@yesql.se>
  2020-04-17 19:46   ` Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Daniel Gustafsson @ 2020-04-17 19:27 UTC (permalink / raw)
  To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org

> On 17 Apr 2020, at 20:19, Andrew Dunstan <andrew@dunslane.net> wrote:
> 
> Only provide new libpq sslpasskey hook for openssl-enabled builds
> 
> In commit 4dc6355210 I neglected to put #ifdef USE_OPENSSL around the
> declarations of the new items. This is remedied here.

This wasn't really the problem I reported though.  As per my patch [0] in the
email, the issue is with openssl_tls_init_hook in src/include/libpq/libpq-be.h
requiring an OpenSSL specific SSL_CTX parameter, thus breaking compilation for
other TLS backends. The name also makes it somewhat backend specific =)

PQgetSSLKeyPassHook is written generic enough that it could make sense for
other backends too, but for now I think we can keep the guards introduced in
this commit.

cheers ./daniel

[0] E1BB5261-5C89-494A-841B-283DAD27A2EA@yesql.se




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build
  2020-04-17 18:19 pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Andrew Dunstan <andrew@dunslane.net>
  2020-04-17 19:27 ` Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Daniel Gustafsson <daniel@yesql.se>
@ 2020-04-17 19:46   ` Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
  2020-04-17 20:22     ` Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Daniel Gustafsson <daniel@yesql.se>
  0 siblings, 1 reply; 4+ messages in thread

From: Andrew Dunstan @ 2020-04-17 19:46 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org


On 4/17/20 3:27 PM, Daniel Gustafsson wrote:
>> On 17 Apr 2020, at 20:19, Andrew Dunstan <andrew@dunslane.net> wrote:
>>
>> Only provide new libpq sslpasskey hook for openssl-enabled builds
>>
>> In commit 4dc6355210 I neglected to put #ifdef USE_OPENSSL around the
>> declarations of the new items. This is remedied here.
> This wasn't really the problem I reported though.  As per my patch [0] in the
> email, the issue is with openssl_tls_init_hook in src/include/libpq/libpq-be.h
> requiring an OpenSSL specific SSL_CTX parameter, thus breaking compilation for
> other TLS backends. The name also makes it somewhat backend specific =)
>
> PQgetSSLKeyPassHook is written generic enough that it could make sense for
> other backends too, but for now I think we can keep the guards introduced in
> this commit.
>
> cheers ./daniel
>

Oh, *sigh* brainfade.


Will fix.


cheers


andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build
  2020-04-17 18:19 pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Andrew Dunstan <andrew@dunslane.net>
  2020-04-17 19:27 ` Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Daniel Gustafsson <daniel@yesql.se>
  2020-04-17 19:46   ` Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
@ 2020-04-17 20:22     ` Daniel Gustafsson <daniel@yesql.se>
  0 siblings, 0 replies; 4+ messages in thread

From: Daniel Gustafsson @ 2020-04-17 20:22 UTC (permalink / raw)
  To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>; +Cc: Andrew Dunstan <andrew@dunslane.net>; pgsql-committers@lists.postgresql.org

> On 17 Apr 2020, at 21:46, Andrew Dunstan <andrew.dunstan@2ndquadrant.com> wrote:
> 
> On 4/17/20 3:27 PM, Daniel Gustafsson wrote:
>>> On 17 Apr 2020, at 20:19, Andrew Dunstan <andrew@dunslane.net> wrote:
>>> 
>>> Only provide new libpq sslpasskey hook for openssl-enabled builds
>>> 
>>> In commit 4dc6355210 I neglected to put #ifdef USE_OPENSSL around the
>>> declarations of the new items. This is remedied here.
>> This wasn't really the problem I reported though.  As per my patch [0] in the
>> email, the issue is with openssl_tls_init_hook in src/include/libpq/libpq-be.h
>> requiring an OpenSSL specific SSL_CTX parameter, thus breaking compilation for
>> other TLS backends. The name also makes it somewhat backend specific =)
>> 
>> PQgetSSLKeyPassHook is written generic enough that it could make sense for
>> other backends too, but for now I think we can keep the guards introduced in
>> this commit.
> 
> Oh, *sigh* brainfade.
> 
> Will fix.

Thanks, f342d7ad03e61a1cea0339cf0c5aea0d01c3b43e was more what I had in mind.

cheers ./daniel




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2020-04-17 20:22 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 18:19 pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build Andrew Dunstan <andrew@dunslane.net>
2020-04-17 19:27 ` Daniel Gustafsson <daniel@yesql.se>
2020-04-17 19:46   ` Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
2020-04-17 20:22     ` Daniel Gustafsson <daniel@yesql.se>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox