-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CC: cyassl: update to wolfssl version 3.8.0 to fix security problems
Backport of: r46167: cyassl: version bump to 3.4.6 r46168: cyassl: update to wolfssl 3.6.0 r46551: cyassl: the upstream package in version 4.6.0 changed r47791: cyassl: update to wolfSSL version 3.7.0 This version and version 3.6.8 are fixing the following security problems: * CVE-2015-7744 * CVE-2015-6925 r48616: cyassl: update to wolfssl version 3.8.0 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48873 3c298f89-4303-0410-b956-a3cf2f4a3e73
- Loading branch information
hauke
committed
Mar 1, 2016
1 parent
380df1a
commit eaa864e
Showing
5 changed files
with
47 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch
This file was deleted.
Oops, something went wrong.
23 changes: 16 additions & 7 deletions
23
package/libs/cyassl/patches/300-SSL_set_tlsext_host_name.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
--- a/cyassl/openssl/ssl.h | ||
+++ b/cyassl/openssl/ssl.h | ||
@@ -372,6 +373,7 @@ | ||
#define SSL_CTX_get_ex_new_index CyaSSL_CTX_get_ex_new_index | ||
--- a/wolfssl/openssl/ssl.h | ||
+++ b/wolfssl/openssl/ssl.h | ||
@@ -401,6 +401,8 @@ typedef WOLFSSL_X509_STORE_CTX X509_STOR | ||
/* yassl had set the default to be 500 */ | ||
#define SSL_get_default_timeout(ctx) 500 | ||
|
||
+#define SSL_set_tlsext_host_name(x, y) wolfSSL_UseSNI(x, WOLFSSL_SNI_HOST_NAME, y, strlen(y)) | ||
+ | ||
/* Lighthttp compatability */ | ||
|
||
+#define SSL_set_tlsext_host_name(x, y) CyaSSL_UseSNI(x, CYASSL_SNI_HOST_NAME, y, strlen(y)) | ||
#ifdef HAVE_LIGHTY | ||
@@ -487,7 +489,6 @@ typedef WOLFSSL_ASN1_BIT_STRING ASN1_ | ||
#define SSL_TLSEXT_ERR_NOACK alert_warning | ||
#define TLSEXT_NAMETYPE_host_name WOLFSSL_SNI_HOST_NAME | ||
|
||
#ifdef __cplusplus | ||
} /* extern "C" */ | ||
-#define SSL_set_tlsext_host_name wolfSSL_set_tlsext_host_name | ||
#define SSL_get_servername wolfSSL_get_servername | ||
#define SSL_set_SSL_CTX wolfSSL_set_SSL_CTX | ||
#define SSL_CTX_get_verify_callback wolfSSL_CTX_get_verify_callback |
12 changes: 12 additions & 0 deletions
12
package/libs/cyassl/patches/400-additional_compatibility.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- a/cyassl/openssl/ssl.h | ||
+++ b/cyassl/openssl/ssl.h | ||
@@ -27,6 +27,9 @@ | ||
#define CYASSL_OPENSSL_H_ | ||
|
||
#include <cyassl/ssl.h> | ||
+#ifndef HAVE_SNI | ||
+#undef CYASSL_SNI_HOST_NAME | ||
+#endif | ||
#include <wolfssl/openssl/ssl.h> | ||
|
||
#endif |