1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-05 09:19:17 +03:00
Heikki Linnakangas 680513ab79 Break out OpenSSL-specific code to separate files.
This refactoring is in preparation for adding support for other SSL
implementations, with no user-visible effects. There are now two #defines,
USE_OPENSSL which is defined when building with OpenSSL, and USE_SSL which
is defined when building with any SSL implementation. Currently, OpenSSL is
the only implementation so the two #defines go together, but USE_SSL is
supposed to be used for implementation-independent code.

The libpq SSL code is changed to use a custom BIO, which does all the raw
I/O, like we've been doing in the backend for a long time. That makes it
possible to use MSG_NOSIGNAL to block SIGPIPE when using SSL, which avoids
a couple of syscall for each send(). Probably doesn't make much performance
difference in practice - the SSL encryption is expensive enough to mask the
effect - but it was a natural result of this refactoring.

Based on a patch by Martijn van Oosterhout from 2006. Briefly reviewed by
Alvaro Herrera, Andreas Karlsson, Jeff Janes.
2014-08-11 11:54:19 +03:00
..
2014-05-06 12:12:18 -04:00
2014-01-07 16:05:30 -05:00
2013-05-29 16:58:43 -04:00
2010-09-20 22:08:53 +02:00
2014-01-07 16:05:30 -05:00
2010-09-20 22:08:53 +02:00
2014-06-10 21:36:13 -04:00
2012-02-24 16:19:18 -05:00
2010-09-20 22:08:53 +02:00
2014-06-10 21:36:13 -04:00
2014-01-07 16:05:30 -05:00