summaryrefslogtreecommitdiff
path: root/package/libs/polarssl
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 18:55:17 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 18:55:25 +0200
commite6b69e579348d4c16cba07e26f273e9d3bbe6516 (patch)
tree1c51d5ccfde0544f1975beb459dd86d64a45826f /package/libs/polarssl
parentc52853902ecedad4dbce4fdac66d92592e6a4d82 (diff)
downloadmtk-20170518-e6b69e579348d4c16cba07e26f273e9d3bbe6516.zip
mtk-20170518-e6b69e579348d4c16cba07e26f273e9d3bbe6516.tar.gz
mtk-20170518-e6b69e579348d4c16cba07e26f273e9d3bbe6516.tar.bz2
package/libs/*ssl: adds, probably from OpenWRT
Diffstat (limited to 'package/libs/polarssl')
-rwxr-xr-xpackage/libs/polarssl/patches/100-disable_sslv3.patch12
-rwxr-xr-xpackage/libs/polarssl/patches/300-CVE-2015-1182.patch11
2 files changed, 23 insertions, 0 deletions
diff --git a/package/libs/polarssl/patches/100-disable_sslv3.patch b/package/libs/polarssl/patches/100-disable_sslv3.patch
new file mode 100755
index 0000000..06312f3
--- /dev/null
+++ b/package/libs/polarssl/patches/100-disable_sslv3.patch
@@ -0,0 +1,12 @@
+--- a/include/polarssl/config.h
++++ b/include/polarssl/config.h
+@@ -859,8 +859,8 @@
+ * POLARSSL_SHA1_C
+ *
+ * Comment this macro to disable support for SSL 3.0
+- */
+ #define POLARSSL_SSL_PROTO_SSL3
++ */
+
+ /**
+ * \def POLARSSL_SSL_PROTO_TLS1
diff --git a/package/libs/polarssl/patches/300-CVE-2015-1182.patch b/package/libs/polarssl/patches/300-CVE-2015-1182.patch
new file mode 100755
index 0000000..5961d37
--- /dev/null
+++ b/package/libs/polarssl/patches/300-CVE-2015-1182.patch
@@ -0,0 +1,11 @@
+--- a/library/asn1parse.c
++++ b/library/asn1parse.c
+@@ -278,6 +278,8 @@ int asn1_get_sequence_of( unsigned char
+ if( cur->next == NULL )
+ return( POLARSSL_ERR_ASN1_MALLOC_FAILED );
+
++ memset( cur->next, 0, sizeof( asn1_sequence ) );
++
+ cur = cur->next;
+ }
+ }