Skip to content

Commit 045cd67

Browse files
committed
mbedtls: Update to Mbed TLS 2.18.1
Update to Mbed TLS 2.18.1 and Mbed Crypto 1.1.1.
1 parent 22c82dc commit 045cd67

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

features/mbedtls/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mbedtls-2.18.0-rc3
1+
mbedtls-2.18.1

features/mbedtls/importer/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#
2828

2929
# Set the mbed TLS release to import (this can/should be edited before import)
30-
MBED_TLS_RELEASE ?= mbedtls-2.18.0-rc3
30+
MBED_TLS_RELEASE ?= mbedtls-2.18.1
3131
MBED_TLS_REPO_URL ?= [email protected]:ARMmbed/mbedtls-restricted.git
3232

3333
# Translate between mbed TLS namespace and mbed namespace

features/mbedtls/inc/mbedtls/platform.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ int mbedtls_platform_set_snprintf( int (*snprintf_func)( char * s, size_t n,
256256
* the destination buffer is too short.
257257
*/
258258
#if defined(MBEDTLS_PLATFORM_HAS_NON_CONFORMING_VSNPRINTF)
259+
#include <stdarg.h>
259260
/* For Older Windows (inc. MSYS2), we provide our own fixed implementation */
260261
int mbedtls_platform_win32_vsnprintf( char *s, size_t n, const char *fmt, va_list arg );
261262
#endif

features/mbedtls/inc/mbedtls/version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
* Major, Minor, Patchlevel
4040
*/
4141
#define MBEDTLS_VERSION_MAJOR 2
42-
#define MBEDTLS_VERSION_MINOR 17
42+
#define MBEDTLS_VERSION_MINOR 18
4343
#define MBEDTLS_VERSION_PATCH 0
4444

4545
/**
4646
* The single version number has the following structure:
4747
* MMNNPP00
4848
* Major version | Minor version | Patch version
4949
*/
50-
#define MBEDTLS_VERSION_NUMBER 0x02110000
51-
#define MBEDTLS_VERSION_STRING "2.17.0"
52-
#define MBEDTLS_VERSION_STRING_FULL "mbed TLS 2.17.0"
50+
#define MBEDTLS_VERSION_NUMBER 0x02120000
51+
#define MBEDTLS_VERSION_STRING "2.18.0"
52+
#define MBEDTLS_VERSION_STRING_FULL "mbed TLS 2.18.0"
5353

5454
#if defined(MBEDTLS_VERSION_C)
5555

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mbedcrypto-1.1.0d2
1+
mbedcrypto-1.1.1

features/mbedtls/mbed-crypto/importer/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Set the Mbed Crypto release to import (this can/should be edited before
3131
# import)
32-
CRYPTO_RELEASE ?= mbedcrypto-1.1.0d2
32+
CRYPTO_RELEASE ?= mbedcrypto-1.1.1
3333
CRYPTO_REPO_URL ?= [email protected]:ARMmbed/mbed-crypto.git
3434

3535
# Translate between Mbed Crypto namespace and Mbed OS namespace

features/mbedtls/mbed-crypto/src/ecp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,8 +2004,10 @@ static unsigned char ecp_pick_window_size( const mbedtls_ecp_group *grp,
20042004
* Make sure w is within bounds.
20052005
* (The last test is useful only for very small curves in the test suite.)
20062006
*/
2007+
#if( MBEDTLS_ECP_WINDOW_SIZE < 6 )
20072008
if( w > MBEDTLS_ECP_WINDOW_SIZE )
20082009
w = MBEDTLS_ECP_WINDOW_SIZE;
2010+
#endif
20092011
if( w >= grp->nbits )
20102012
w = 2;
20112013

features/mbedtls/src/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ LOCAL_CFLAGS += -fPIC -fpic
3535
endif
3636
endif
3737

38-
SOEXT_TLS=so.12
39-
SOEXT_X509=so.0
38+
SOEXT_TLS=so.13
39+
SOEXT_X509=so.1
4040
SOEXT_CRYPTO=so.3
4141

4242
# Set AR_DASH= (empty string) to use an ar implementation that does not accept

0 commit comments

Comments
 (0)