-
- Downloads
Here is a patch to fix win32 ssl builds. Summary of changes:
* Links with -leay32 and -lssleay32 instead of crypto and ssl. On win32, "crypto and ssl" is only used for static linking. * Initializes SSL in the backend and not just in the postmaster. We cannot pass the SSL context from the postmaster through the parameter file, because it contains function pointers. * Split one error check in be-secure.c. Previously we could not tell which of three calls actually failed. The previous code also returned incorrect error messages if SSL_accept() failed - that function needs to use SSL_get_error() on the return value, can't just use the error queue. * Since the win32 implementation uses non-blocking sockets "behind the scenes" in order to deliver signals correctly, implements a version of SSL_accept() that can handle this. Also, add a wait function in case SSL_read or SSL_write() needs more data. Magnus Hagander
Showing
- configure 141 additions, 0 deletionsconfigure
- configure.in 8 additions, 3 deletionsconfigure.in
- src/backend/libpq/be-secure.c 64 additions, 4 deletionssrc/backend/libpq/be-secure.c
- src/backend/port/win32/socket.c 2 additions, 2 deletionssrc/backend/port/win32/socket.c
- src/backend/postmaster/postmaster.c 11 additions, 1 deletionsrc/backend/postmaster/postmaster.c
- src/include/pg_config.h.in 6 additions, 0 deletionssrc/include/pg_config.h.in
- src/include/port/win32.h 2 additions, 1 deletionsrc/include/port/win32.h
Loading
Please register or sign in to comment