blob: 49d1a0f223a9fb9359bd8b21f110c51dc4fe85f0 [file] [log] [blame] [view]
Hanno Becker8e184e22021-05-14 17:10:27 +01001Removal of some SSL error codes
2-----------------------------------------------------------------
3
4This affects users manually checking for the following error codes:
5- `MBEDTLS_ERR_SSL_CERTIFICATE_REQUIRED`
6- `MBEDTLS_ERR_SSL_INVALID_VERIFY_HASH`
7- `MBEDTLS_ERR_SSL_CERTIFICATE_TOO_LARGE`
8
9Migration paths:
10- `MBEDTLS_ERR_SSL_CERTIFICATE_REQUIRED` and `MBEDTLS_ERR_SSL_INVALID_VERIFY_HASH`
11 should never be returned from Mbed TLS, and there is no need to check for it.
12 Users should simply remove manual checks for those codes, and let the Mbed TLS
13 team know if -- contrary to the team's understanding -- there is in fact a situation
14 where one of them was ever returned.
15- `MBEDTLS_ERR_SSL_CERTIFICATE_TOO_LARGE` has been removed, and
16 `MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL` is returned instead if the user's own certificate
17 is too large to fit into the output buffers. Users should check for
18 `MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL` instead, and potentially compare the size of their
19 own certificate against the configured size of the output buffer to understand if
20 the error is due to an overly large certificate.