mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-12 05:20:01 +01:00
wolfSSL error codes are mostly positive numbers, but esp-tls potentially non-block API (read/write) returns ssize_t, i.e. bytes read/written if >0, errorcode otherwise. To comply with this API we have to conditionate the wolfssl return codes to negative numbers, preferably the same codes as mbedTLS codes.
6.4 KiB
6.4 KiB