micropython/extmod
Thorsten von Eicken 9aa214077e extmod/modussl: Improve exception error messages.
This commit adds human readable error messages when mbedtls or axtls raise
an exception.  Currently often just an EIO error is raised so the user is
lost and can't tell whether it's a cert error, buffer overrun, connecting
to a non-ssl port, etc.  The axtls and mbedtls error raising in the ussl
module is modified to raise:

    OSError(-err_num, "error string")

For axtls a small error table of strings is added and used for the second
argument of the OSErrer.  For mbedtls the code uses mbedtls' built-in
strerror function, and if there is an out of memory condition it just
produces OSError(-err_num).  Producing the error string for mbedtls is
conditional on them being included in the mbedtls build, via
MBEDTLS_ERROR_C.
2020-07-20 23:41:45 +10:00
..
axtls-include
btstack extmod/modbluetooth: Add event for "indicate acknowledgement". 2020-07-20 23:26:41 +10:00
crypto-algorithms
lwip-include
nimble extmod/modbluetooth: Add event for "indicate acknowledgement". 2020-07-20 23:26:41 +10:00
re1.5
uasyncio extmod/uasyncio: Add asyncio.wait_for_ms function. 2020-06-10 22:29:44 +10:00
uzlib
webrepl
extmod.mk py/stream: Remove mp_stream_errno and use system errno instead. 2020-04-27 23:58:46 +10:00
machine_i2c.c all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
machine_i2c.h
machine_mem.c all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
machine_mem.h
machine_pinbase.c
machine_pinbase.h
machine_pulse.c
machine_pulse.h
machine_signal.c
machine_signal.h
machine_spi.c all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
machine_spi.h
misc.h
modbluetooth.c extmod/modbluetooth: Add event for "indicate acknowledgement". 2020-07-20 23:26:41 +10:00
modbluetooth.h extmod/modbluetooth: Add event for "indicate acknowledgement". 2020-07-20 23:26:41 +10:00
modbluetooth_hci.h
modbtree.c extmod/modbtree: Retain reference to underlying stream so it's not GC'd. 2020-05-02 16:08:04 +10:00
modframebuf.c all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
modlwip.c all: Fix implicit floating point to integer conversions. 2020-04-18 22:42:24 +10:00
modonewire.c
moduasyncio.c all: Clean up error strings to use lowercase and change cannot to can't. 2020-04-13 22:19:37 +10:00
modubinascii.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
moducryptolib.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
moductypes.c extmod/moductypes: Use mp_obj_is_dict_or_ordereddict to simplify code. 2020-06-24 12:05:00 +10:00
moduhashlib.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
moduheapq.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
modujson.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
modurandom.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
modure.c extmod/ure: Use single function for match/search/sub. 2020-06-08 09:16:09 +02:00
moduselect.c all: Fix implicit floating point promotion. 2020-04-18 22:36:14 +10:00
modussl_axtls.c extmod/modussl: Improve exception error messages. 2020-07-20 23:41:45 +10:00
modussl_mbedtls.c extmod/modussl: Improve exception error messages. 2020-07-20 23:41:45 +10:00
modutimeq.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
moduwebsocket.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
moduwebsocket.h
moduzlib.c all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
modwebrepl.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
network_cyw43.c all: Format code to add space after C++-style comment start. 2020-04-23 11:24:25 +10:00
network_cyw43.h
uos_dupterm.c all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
utime_mphal.c
utime_mphal.h
vfs.c extmod/vfs: Retain previous working directory if chdir fails. 2020-05-29 23:05:01 +10:00
vfs.h extmod/vfs: Factor out vfs mount-and-chdir helper from stm32. 2020-03-11 14:24:26 +11:00
vfs_blockdev.c
vfs_fat.c
vfs_fat.h
vfs_fat_diskio.c tools/uncrustify: Enable more opts to remove space between func and '('. 2020-06-19 22:07:32 +10:00
vfs_fat_file.c
vfs_lfs.c
vfs_lfs.h
vfs_lfsx.c extmod/vfs_lfs: Fix littlefs bindings to build in nan-box mode. 2020-06-25 16:32:48 +10:00
vfs_lfsx_file.c
vfs_posix.c unix: Implement PEP 475 to retry syscalls failing with EINTR. 2020-03-27 14:40:46 +11:00
vfs_posix.h
vfs_posix_file.c all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
vfs_reader.c
virtpin.c
virtpin.h