diff options
author | Damien George <damien@micropython.org> | 2023-04-30 18:06:19 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-05-01 10:54:02 +1000 |
commit | 4ff148de4582bb6ed01cb4b5189cc8ec312e09f5 (patch) | |
tree | aab123caa79bd16ba7ecb98264102df848fc6b60 /lib/mbedtls_errors/error.fmt | |
parent | b5f4611969302aab0b75620b8ae4450c97d4f79d (diff) | |
download | micropython-4ff148de4582bb6ed01cb4b5189cc8ec312e09f5.tar.gz micropython-4ff148de4582bb6ed01cb4b5189cc8ec312e09f5.zip |
lib/mbedtls_errors: Update patch and error list for new mbedtls.
Running `./do-mp.sh` now generates this mp_mbedtls_errors.c with mbedTLS
v2.28.1.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'lib/mbedtls_errors/error.fmt')
-rw-r--r-- | lib/mbedtls_errors/error.fmt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mbedtls_errors/error.fmt b/lib/mbedtls_errors/error.fmt index 5beeb6e7c9..15889128d4 100644 --- a/lib/mbedtls_errors/error.fmt +++ b/lib/mbedtls_errors/error.fmt @@ -110,7 +110,7 @@ void mbedtls_strerror(int ret, char *buf, size_t buflen) { if (got_hl) { use_ret = ret & 0xFF80; - // special case + // special case, don't try to translate low level code #if defined(MBEDTLS_SSL_TLS_C) if (use_ret == -(MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE)) { strncpy(buf, "MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE", buflen); |