forked from pool/postfix
Accepting request 87151 from home:elvigia:branches:server:mail
- Use SSL_MODE_RELEASE_BUFFERS if available, see SSL_CTX_set_mode man page and http://www.imperialviolet.org/2010/06/25/overclocking-ssl.html for the full details. OBS-URL: https://build.opensuse.org/request/show/87151 OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=97
This commit is contained in:
parent
bd7f2dd9ee
commit
e86b4cb85a
29
postfix-2.8.5-ssl-release-buffers.patch
Normal file
29
postfix-2.8.5-ssl-release-buffers.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
--- src/tls/tls_client.c.orig
|
||||||
|
+++ src/tls/tls_client.c
|
||||||
|
@@ -372,6 +372,12 @@ TLS_APPL_STATE *tls_client_init(const TL
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
||||||
|
+ /* Keep memory usage as low as possible */
|
||||||
|
+
|
||||||
|
+#ifdef SSL_MODE_RELEASE_BUFFERS
|
||||||
|
+ SSL_CTX_set_mode(client_ctx, SSL_MODE_RELEASE_BUFFERS);
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* See the verify callback in tls_verify.c
|
||||||
|
*/
|
||||||
|
--- src/tls/tls_server.c.orig
|
||||||
|
+++ src/tls/tls_server.c
|
||||||
|
@@ -381,6 +381,11 @@ TLS_APPL_STATE *tls_server_init(const TL
|
||||||
|
tls_print_errors();
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ /* Keep memory usage as low as possible */
|
||||||
|
+#ifdef SSL_MODE_RELEASE_BUFFERS
|
||||||
|
+ SSL_CTX_set_mode(server_ctx, SSL_MODE_RELEASE_BUFFERS);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* See the verify callback in tls_verify.c
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 9 04:30:54 UTC 2011 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Use SSL_MODE_RELEASE_BUFFERS if available, see
|
||||||
|
SSL_CTX_set_mode man page and
|
||||||
|
http://www.imperialviolet.org/2010/06/25/overclocking-ssl.html
|
||||||
|
for the full details.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 6 14:49:47 UTC 2011 - chris@computersalat.de
|
Tue Sep 6 14:49:47 UTC 2011 - chris@computersalat.de
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: A fast, secure, and flexible mailer
|
Summary: A fast, secure, and flexible mailer
|
||||||
Version: 2.8.5
|
Version: 2.8.5
|
||||||
@ -36,6 +38,7 @@ Patch10: %{name}-2.8.3-main.cf.patch
|
|||||||
Patch11: %{name}-2.8.3-master.cf.patch
|
Patch11: %{name}-2.8.3-master.cf.patch
|
||||||
Patch12: %{name}-2.8.3-post-install.patch
|
Patch12: %{name}-2.8.3-post-install.patch
|
||||||
Patch20: %{name}-vda-v10-2.8.3.patch
|
Patch20: %{name}-vda-v10-2.8.3.patch
|
||||||
|
Patch21: postfix-2.8.5-ssl-release-buffers.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
PreReq: %insserv_prereq %fillup_prereq
|
PreReq: %insserv_prereq %fillup_prereq
|
||||||
PreReq: /usr/bin/getent
|
PreReq: /usr/bin/getent
|
||||||
@ -145,6 +148,7 @@ PostgreSQL.
|
|||||||
%patch11 -p1
|
%patch11 -p1
|
||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
%patch20 -p1
|
%patch20 -p1
|
||||||
|
%patch21
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user