diff options
author | Carlosgg <carlosgilglez@gmail.com> | 2022-07-30 17:01:56 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-01-30 11:08:46 +1100 |
commit | f3d1495fd3da2c737a043cfc65d5a4f5c6155ad5 (patch) | |
tree | 5ba1289259dc9b51ce656e234d52630779fcede0 /ports/stm32/mbedtls/mbedtls_config.h | |
parent | 92136cbe674a7f7adfb4b9a8e4622692c7ced9a1 (diff) | |
download | micropython-f3d1495fd3da2c737a043cfc65d5a4f5c6155ad5.tar.gz micropython-f3d1495fd3da2c737a043cfc65d5a4f5c6155ad5.zip |
all: Update bindings, ports and tests for mbedtls v3.5.1.
Changes include:
- Some mbedtls source files renamed or deprecated.
- Our `mbedtls_config.h` files are renamed to `mbedtls_config_port.h`, so
they don't clash with mbedtls's new default configuration file named
`mbedtls_config.h`.
- MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE is deprecated.
- MBEDTLS_HAVE_TIME now requires an `mbedtls_ms_time` function to be
defined but it's only used for TLSv1.3 (currently not enabled in
MicroPython so there is a lazy implementation, i.e. seconds * 1000).
- `tests/multi_net/ssl_data.py` is removed (due to deprecation of
MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE), there are the existing
`ssl_cert_rsa.py` and `sslcontext_server_client.py` tests which do very
similar, simple SSL data transfer.
- Tests now use an EC key by default (they are smaller and faster), and the
RSA key has been regenerated due to the old PKCS encoding used by openssl
rsa command, see
https://stackoverflow.com/questions/40822328/openssl-rsa-key-pem-and-der-conversion-does-not-match
(and `tests/README.md` has been updated accordingly).
Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
Diffstat (limited to 'ports/stm32/mbedtls/mbedtls_config.h')
-rw-r--r-- | ports/stm32/mbedtls/mbedtls_config.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ports/stm32/mbedtls/mbedtls_config.h b/ports/stm32/mbedtls/mbedtls_config.h deleted file mode 100644 index 336fee0a19..0000000000 --- a/ports/stm32/mbedtls/mbedtls_config.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * This file is part of the MicroPython project, http://micropython.org/ - * - * The MIT License (MIT) - * - * Copyright (c) 2018-2019 Damien P. George - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H -#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H - -// Time hook. -#include <time.h> -extern time_t stm32_rtctime_seconds(time_t *timer); -#define MBEDTLS_PLATFORM_TIME_MACRO stm32_rtctime_seconds - -// Set MicroPython-specific options. -#define MICROPY_MBEDTLS_CONFIG_BARE_METAL (1) - -// Include common mbedtls configuration. -#include "extmod/mbedtls/mbedtls_config_common.h" - -#endif /* MICROPY_INCLUDED_MBEDTLS_CONFIG_H */ |