Properly unregister OpenSSL callbacks when libpq is done with
authorMagnus Hagander <magnus@hagander.net>
Wed, 3 Dec 2008 20:04:26 +0000 (20:04 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 3 Dec 2008 20:04:26 +0000 (20:04 +0000)
commit53de6aab47f7ae40ad9fe9e8a248470e4de9d042
treec2813f7a72dd22d216e8e589917622832358345c
parenteb4638bd069f0eaa8ab70fc4733c04ce155075bc
Properly unregister OpenSSL callbacks when libpq is done with
it's connection. This is required for applications that unload
the libpq library (such as PHP) in which case we'd otherwise
have pointers to these functions when they no longer exist.

This needs a bit more testing before we can consider a backpatch,
so not doing that yet.

In passing, remove unused functions in backend/libpq.

Bruce Momjian and Magnus Hagander, per report and analysis
by Russell Smith.
src/backend/libpq/be-secure.c
src/interfaces/libpq/fe-secure.c