Merge branch 'development' into development-restricted
* development: (30 commits)
update README file (#1144)
Fix typo in asn1.h
Improve leap year test names in x509parse.data
Correctly handle leap year in x509_date_is_valid()
Renegotiation: Add tests for SigAlg ext parsing
Parse Signature Algorithm ext when renegotiating
Minor style fix
config.pl get: be better behaved
config.pl get: don't rewrite config.h; detect write errors
Fixed "config.pl get" for options with no value
Fix typo and bracketing in macro args
Ensure failed test_suite output is sent to stdout
Remove use of GNU sed features from ssl-opt.sh
Fix typos in ssl-opt.sh comments
Add ssl-opt.sh test to check gmt_unix_time is good
Extend ssl-opt.h so that run_test takes function
Always print gmt_unix_time in TLS client
Restored note about using minimum functionality in makefiles
Note in README that GNU make is required
Fix changelog for ssl_server2.c usage fix
...
diff --git a/README.md b/README.md
index 5ffd2ae..75639e9 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@
- yotta
- GNU Make
- CMake
-- Microsoft Visual Studio (Visual Studio 6 and Visual Studio 2010)
+- Microsoft Visual Studio (Microsoft Visual Studio 2010 or later)
The main systems used for development are CMake and GNU Make. Those systems are always complete and up-to-date. The others should reflect all changes present in the CMake and Make build system, although features may not be ported there automatically.
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 10fff95..8467b13 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -6187,7 +6187,6 @@
/* Check if new hostname is valid before
* making any change to current one */
-
if( hostname != NULL )
{
hostname_len = strlen( hostname );
@@ -6214,7 +6213,6 @@
else
{
ssl->hostname = mbedtls_calloc( 1, hostname_len + 1 );
-
if( ssl->hostname == NULL )
return( MBEDTLS_ERR_SSL_ALLOC_FAILED );