]> granicus.if.org Git - postgresql/commit - src/interfaces/libpq/fe-secure.c
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)
commit4e816286533dd34c10b368487d4079595a3e1418
treebb6f8c63b5ca2445084cafc2455317f50658bba2
parentc37951ebe945184bd71645c307407b4ecd587a13
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