summaryrefslogtreecommitdiff
path: root/recipes-connectivity/openssl/openssl/debian_bpo8+1/disable_freelist.patch
blob: 354fed86ad12f6da7448b88b529254f02951b637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Kurt Roeckx <kurt@roeckx.be>
Subject: Disable the freelist

We don't define OPENSSL_NO_BUF_FREELISTS globally sinc it changes structures and
would break the ABI.  Instead we just do it in the .c files that try to do
something with it.

Index: openssl-1.0.2/ssl/s3_both.c
===================================================================
--- openssl-1.0.2.orig/ssl/s3_both.c
+++ openssl-1.0.2/ssl/s3_both.c
@@ -573,6 +573,7 @@ int ssl_verify_alarm_type(long type)
     return (al);
 }
 
+#define OPENSSL_NO_BUF_FREELISTS
 #ifndef OPENSSL_NO_BUF_FREELISTS
 /*-
  * On some platforms, malloc() performance is bad enough that you can't just
Index: openssl-1.0.2/ssl/ssl_lib.c
===================================================================
--- openssl-1.0.2.orig/ssl/ssl_lib.c
+++ openssl-1.0.2/ssl/ssl_lib.c
@@ -162,6 +162,8 @@
 
 const char *SSL_version_str = OPENSSL_VERSION_TEXT;
 
+#define OPENSSL_NO_BUF_FREELISTS
+
 SSL3_ENC_METHOD ssl3_undef_enc_method = {
     /*
      * evil casts, but these functions are only called if there's a library