TRodziewicz | 1fcd72e | 2021-06-14 11:16:06 +0200 | [diff] [blame] | 1 | Rename mbedtls_*_ret() cryptography functions whose deprecated variants |
TRodziewicz | 28a4a96 | 2021-06-15 00:18:32 +0200 | [diff] [blame^] | 2 | have been removed |
| 3 | ----------------- |
TRodziewicz | 1e66642 | 2021-06-09 11:25:28 +0200 | [diff] [blame] | 4 | |
TRodziewicz | 1fcd72e | 2021-06-14 11:16:06 +0200 | [diff] [blame] | 5 | This change affects users who were using the `mbedtls_*_ret()` cryptography |
| 6 | functions. |
TRodziewicz | 1e66642 | 2021-06-09 11:25:28 +0200 | [diff] [blame] | 7 | |
| 8 | Those functions were created based on now-deprecated functions according to a |
| 9 | requirement that a function needs to return a value. This change brings back the |
TRodziewicz | 28a4a96 | 2021-06-15 00:18:32 +0200 | [diff] [blame^] | 10 | original names of those functions. The renamed functions are: |
| 11 | |
| 12 | | name before this change | after the change | |
| 13 | |------------------------------|--------------------------| |
| 14 | | mbedtls_ctr_drbg_update_ret | mbedtls_ctr_drbg_update | |
| 15 | | mbedtls_hmac_drbg_update_ret | mbedtls_hmac_drbg_update | |
| 16 | | mbedtls_md2_starts_ret | mbedtls_md2_starts | |
| 17 | | mbedtls_md2_update_ret | mbedtls_md2_update | |
| 18 | | mbedtls_md2_finish_ret | mbedtls_md2_finish | |
| 19 | | mbedtls_md2_ret | mbedtls_md2 | |
| 20 | | mbedtls_md4_starts_ret | mbedtls_md4_starts | |
| 21 | | mbedtls_md4_update_ret | mbedtls_md4_update | |
| 22 | | mbedtls_md4_finish_ret | mbedtls_md4_finish | |
| 23 | | mbedtls_md4_ret | mbedtls_md4 | |
| 24 | | mbedtls_md5_starts_ret | mbedtls_md5_starts | |
| 25 | | mbedtls_md5_update_ret | mbedtls_md5_update | |
| 26 | | mbedtls_md5_finish_ret | mbedtls_md5_finish | |
| 27 | | mbedtls_md5_ret | mbedtls_md5 | |
| 28 | | mbedtls_ripemd160_starts_ret | mbedtls_ripemd160_starts | |
| 29 | | mbedtls_ripemd160_update_ret | mbedtls_ripemd160_update | |
| 30 | | mbedtls_ripemd160_finish_ret | mbedtls_ripemd160_finish | |
| 31 | | mbedtls_ripemd160_ret | mbedtls_ripemd160 | |
| 32 | | mbedtls_sha1_starts_ret | mbedtls_sha1_starts | |
| 33 | | mbedtls_sha1_update_ret | mbedtls_sha1_update | |
| 34 | | mbedtls_sha1_finish_ret | mbedtls_sha1_finish | |
| 35 | | mbedtls_sha1_ret | mbedtls_sha1 | |
| 36 | | mbedtls_sha256_starts_ret | mbedtls_sha256_starts | |
| 37 | | mbedtls_sha256_update_ret | mbedtls_sha256_update | |
| 38 | | mbedtls_sha256_finish_ret | mbedtls_sha256_finish | |
| 39 | | mbedtls_sha256_ret | mbedtls_sha256 | |
| 40 | | mbedtls_sha512_starts_ret | mbedtls_sha512_starts | |
| 41 | | mbedtls_sha512_update_ret | mbedtls_sha512_update | |
| 42 | | mbedtls_sha512_finish_ret | mbedtls_sha512_finish | |
| 43 | | mbedtls_sha512_ret | mbedtls_sha512 | |
TRodziewicz | 1e66642 | 2021-06-09 11:25:28 +0200 | [diff] [blame] | 44 | |
| 45 | To migrate to the this change the user can keep the `*_ret` names in their code |
| 46 | and include the `compat_2.x.h` header file which holds macros with proper |
| 47 | renaming or to rename those function in their code according to the list from |
| 48 | mentioned header file. |
TRodziewicz | 28a4a96 | 2021-06-15 00:18:32 +0200 | [diff] [blame^] | 49 | |
| 50 | |
| 51 | |