ssl.patch

application/octet-stream

Filename: ssl.patch
Type: application/octet-stream
Part: 0
Message: Disable OpenSSL compression

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/backend/libpq/be-secure.c 0 0
diff --git a/src/backend/libpq/be-secure.c b/src/backend/libpq/be-secure.c
new file mode 100644
index 4e8faa4..9e976a9
*** a/src/backend/libpq/be-secure.c
--- b/src/backend/libpq/be-secure.c
*************** initialize_SSL(void)
*** 742,747 ****
--- 742,754 ----
  		 */
  		SSL_CTX_set_mode(SSL_context, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
  
+ #ifdef SSL_OP_NO_COMPRESSION
+ 		/*
+ 		 * Disable OpenSSL's data compression in versions which support it.
+ 		 */
+ 		SSL_CTX_set_options(SSL_context, SSL_OP_NO_COMPRESSION);
+ #endif
+ 
  		/*
  		 * Load and verify server's certificate and private key
  		 */