Properly unregister OpenSSL callbacks when libpq is done with

Magnus Hagander <magnus@hagander.net>

Commit: 4e816286533dd34c10b368487d4079595a3e1418
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-12-03T20:04:26Z
Releases: 8.4.0
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.

Files

PathChange+/−
src/backend/libpq/be-secure.c modified +1 −26
src/interfaces/libpq/fe-secure.c modified +124 −46