summaryrefslogtreecommitdiffstatshomepage
path: root/lib/mbedtls_errors/mp_mbedtls_errors.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-04-30 17:37:40 +1000
committerDamien George <damien@micropython.org>2023-04-30 17:40:29 +1000
commitc2bf91219c3168cec01caa3bea662372a6690a2e (patch)
tree5a6e3e456c61d65f1efcdfed87412f588dcc0710 /lib/mbedtls_errors/mp_mbedtls_errors.c
parent867e4dd3dc9235974974fd5dab204371616d6f49 (diff)
downloadmicropython-c2bf91219c3168cec01caa3bea662372a6690a2e.tar.gz
micropython-c2bf91219c3168cec01caa3bea662372a6690a2e.zip
lib/mbedtls_errors: Update error list for current version of mbedtls.
This should have been updated as part of commit 7d73b9ff9975261bd2ff3544b09e9ec494775435, when mbedtls was changed to the LTS branch v2.16. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'lib/mbedtls_errors/mp_mbedtls_errors.c')
-rw-r--r--lib/mbedtls_errors/mp_mbedtls_errors.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mbedtls_errors/mp_mbedtls_errors.c b/lib/mbedtls_errors/mp_mbedtls_errors.c
index 03a91f0dc9..c56f8a19ff 100644
--- a/lib/mbedtls_errors/mp_mbedtls_errors.c
+++ b/lib/mbedtls_errors/mp_mbedtls_errors.c
@@ -53,6 +53,10 @@
#include "mbedtls/aria.h"
#endif
+#if defined(MBEDTLS_ASN1_PARSE_C)
+#include "mbedtls/asn1.h"
+#endif
+
#if defined(MBEDTLS_BASE64_C)
#include "mbedtls/base64.h"
#endif
@@ -378,6 +382,7 @@ static const struct ssl_errs mbedtls_high_level_error_tab[] = {
{ -(MBEDTLS_ERR_SSL_ASYNC_IN_PROGRESS), "SSL_ASYNC_IN_PROGRESS" },
{ -(MBEDTLS_ERR_SSL_EARLY_MESSAGE), "SSL_EARLY_MESSAGE" },
{ -(MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS), "SSL_CRYPTO_IN_PROGRESS" },
+ { -(MBEDTLS_ERR_SSL_BAD_CONFIG), "SSL_BAD_CONFIG" },
#endif /* MBEDTLS_SSL_TLS_C */
#if defined(MBEDTLS_X509_USE_C) || defined(MBEDTLS_X509_CREATE_C)