mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Corrections to the docs wording and changes to aux scripts
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com>
This commit is contained in:
parent
1fcd72e93c
commit
28a4a963fc
@ -1,33 +1,6 @@
|
|||||||
API changes
|
API changes
|
||||||
* Rename functions whose deprecated variants have been removed via #4029:
|
* In modules that implement cryptographic hash functions, many functions
|
||||||
mbedtls_ctr_drbg_update_ret -> mbedtls_ctr_drbg_update
|
mbedtls_xxx() now return int instead of void, and the corresponding
|
||||||
mbedtls_hmac_drbg_update_ret -> mbedtls_hmac_drbg_update
|
function mbedtls_xxx_ret() which was identical except for returning int
|
||||||
mbedtls_md2_starts_ret -> mbedtls_md2_starts
|
has been removed. This also concerns mbedtls_xxx_drbg_update(). See the
|
||||||
mbedtls_md2_update_ret -> mbedtls_md2_update
|
migration guide for more information. Fixes #4212.
|
||||||
mbedtls_md2_finish_ret -> mbedtls_md2_finish
|
|
||||||
mbedtls_md2_ret -> mbedtls_md2
|
|
||||||
mbedtls_md4_starts_ret -> mbedtls_md4_starts
|
|
||||||
mbedtls_md4_update_ret -> mbedtls_md4_update
|
|
||||||
mbedtls_md4_finish_ret -> mbedtls_md4_finish
|
|
||||||
mbedtls_md4_ret -> mbedtls_md4
|
|
||||||
mbedtls_md5_starts_ret -> mbedtls_md5_starts
|
|
||||||
mbedtls_md5_update_ret -> mbedtls_md5_update
|
|
||||||
mbedtls_md5_finish_ret -> mbedtls_md5_finish
|
|
||||||
mbedtls_md5_ret -> mbedtls_md5
|
|
||||||
mbedtls_ripemd160_starts_ret -> mbedtls_ripemd160_starts
|
|
||||||
mbedtls_ripemd160_update_ret -> mbedtls_ripemd160_update
|
|
||||||
mbedtls_ripemd160_finish_ret -> mbedtls_ripemd160_finish
|
|
||||||
mbedtls_ripemd160_ret -> mbedtls_ripemd160
|
|
||||||
mbedtls_sha1_starts_ret -> mbedtls_sha1_starts
|
|
||||||
mbedtls_sha1_update_ret -> mbedtls_sha1_update
|
|
||||||
mbedtls_sha1_finish_ret -> mbedtls_sha1_finish
|
|
||||||
mbedtls_sha1_ret -> mbedtls_sha1
|
|
||||||
mbedtls_sha256_starts_ret -> mbedtls_sha256_starts
|
|
||||||
mbedtls_sha256_update_ret -> mbedtls_sha256_update
|
|
||||||
mbedtls_sha256_finish_ret -> mbedtls_sha256_finish
|
|
||||||
mbedtls_sha256_ret -> mbedtls_sha256
|
|
||||||
mbedtls_sha512_starts_ret -> mbedtls_sha512_starts
|
|
||||||
mbedtls_sha512_update_ret -> mbedtls_sha512_update
|
|
||||||
mbedtls_sha512_finish_ret -> mbedtls_sha512_finish
|
|
||||||
mbedtls_sha512_ret -> mbedtls_sha512.
|
|
||||||
Fixes #4212.
|
|
||||||
|
@ -1,15 +1,51 @@
|
|||||||
Rename mbedtls_*_ret() cryptography functions whose deprecated variants
|
Rename mbedtls_*_ret() cryptography functions whose deprecated variants
|
||||||
have been removed in #4029
|
have been removed
|
||||||
--------------------------
|
-----------------
|
||||||
|
|
||||||
This change affects users who were using the `mbedtls_*_ret()` cryptography
|
This change affects users who were using the `mbedtls_*_ret()` cryptography
|
||||||
functions.
|
functions.
|
||||||
|
|
||||||
Those functions were created based on now-deprecated functions according to a
|
Those functions were created based on now-deprecated functions according to a
|
||||||
requirement that a function needs to return a value. This change brings back the
|
requirement that a function needs to return a value. This change brings back the
|
||||||
original names of those functions.
|
original names of those functions. The renamed functions are:
|
||||||
|
|
||||||
|
| name before this change | after the change |
|
||||||
|
|------------------------------|--------------------------|
|
||||||
|
| mbedtls_ctr_drbg_update_ret | mbedtls_ctr_drbg_update |
|
||||||
|
| mbedtls_hmac_drbg_update_ret | mbedtls_hmac_drbg_update |
|
||||||
|
| mbedtls_md2_starts_ret | mbedtls_md2_starts |
|
||||||
|
| mbedtls_md2_update_ret | mbedtls_md2_update |
|
||||||
|
| mbedtls_md2_finish_ret | mbedtls_md2_finish |
|
||||||
|
| mbedtls_md2_ret | mbedtls_md2 |
|
||||||
|
| mbedtls_md4_starts_ret | mbedtls_md4_starts |
|
||||||
|
| mbedtls_md4_update_ret | mbedtls_md4_update |
|
||||||
|
| mbedtls_md4_finish_ret | mbedtls_md4_finish |
|
||||||
|
| mbedtls_md4_ret | mbedtls_md4 |
|
||||||
|
| mbedtls_md5_starts_ret | mbedtls_md5_starts |
|
||||||
|
| mbedtls_md5_update_ret | mbedtls_md5_update |
|
||||||
|
| mbedtls_md5_finish_ret | mbedtls_md5_finish |
|
||||||
|
| mbedtls_md5_ret | mbedtls_md5 |
|
||||||
|
| mbedtls_ripemd160_starts_ret | mbedtls_ripemd160_starts |
|
||||||
|
| mbedtls_ripemd160_update_ret | mbedtls_ripemd160_update |
|
||||||
|
| mbedtls_ripemd160_finish_ret | mbedtls_ripemd160_finish |
|
||||||
|
| mbedtls_ripemd160_ret | mbedtls_ripemd160 |
|
||||||
|
| mbedtls_sha1_starts_ret | mbedtls_sha1_starts |
|
||||||
|
| mbedtls_sha1_update_ret | mbedtls_sha1_update |
|
||||||
|
| mbedtls_sha1_finish_ret | mbedtls_sha1_finish |
|
||||||
|
| mbedtls_sha1_ret | mbedtls_sha1 |
|
||||||
|
| mbedtls_sha256_starts_ret | mbedtls_sha256_starts |
|
||||||
|
| mbedtls_sha256_update_ret | mbedtls_sha256_update |
|
||||||
|
| mbedtls_sha256_finish_ret | mbedtls_sha256_finish |
|
||||||
|
| mbedtls_sha256_ret | mbedtls_sha256 |
|
||||||
|
| mbedtls_sha512_starts_ret | mbedtls_sha512_starts |
|
||||||
|
| mbedtls_sha512_update_ret | mbedtls_sha512_update |
|
||||||
|
| mbedtls_sha512_finish_ret | mbedtls_sha512_finish |
|
||||||
|
| mbedtls_sha512_ret | mbedtls_sha512 |
|
||||||
|
|
||||||
To migrate to the this change the user can keep the `*_ret` names in their code
|
To migrate to the this change the user can keep the `*_ret` names in their code
|
||||||
and include the `compat_2.x.h` header file which holds macros with proper
|
and include the `compat_2.x.h` header file which holds macros with proper
|
||||||
renaming or to rename those function in their code according to the list from
|
renaming or to rename those function in their code according to the list from
|
||||||
mentioned header file.
|
mentioned header file.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,8 +23,7 @@ use open qw(:std utf8);
|
|||||||
|
|
||||||
-d 'include/mbedtls' or die "$0: must be run from root\n";
|
-d 'include/mbedtls' or die "$0: must be run from root\n";
|
||||||
|
|
||||||
@ARGV = <include/mbedtls/*.h>;
|
@ARGV = grep { ! /compat-2\.x\.h/ } <include/mbedtls/*.h>;
|
||||||
push @ARGV, <library/*.h>;
|
|
||||||
push @ARGV, "3rdparty/everest/include/everest/everest.h";
|
push @ARGV, "3rdparty/everest/include/everest/everest.h";
|
||||||
push @ARGV, "3rdparty/everest/include/everest/x25519.h";
|
push @ARGV, "3rdparty/everest/include/everest/x25519.h";
|
||||||
push @ARGV, glob("library/*.h");
|
push @ARGV, glob("library/*.h");
|
||||||
|
@ -47,9 +47,9 @@ done
|
|||||||
|
|
||||||
if [ $INTERNAL ]
|
if [ $INTERNAL ]
|
||||||
then
|
then
|
||||||
HEADERS=$( ls library/*.h )
|
HEADERS=$( ls include/mbedtls/*_internal.h library/*.h | egrep -v 'compat-2\.x\.h' )
|
||||||
else
|
else
|
||||||
HEADERS=$( ls include/mbedtls/*.h include/psa/*.h library/*.h )
|
HEADERS=$( ls include/mbedtls/*.h include/psa/*.h library/*.h | egrep -v 'compat-2\.x\.h' )
|
||||||
HEADERS="$HEADERS 3rdparty/everest/include/everest/everest.h 3rdparty/everest/include/everest/x25519.h"
|
HEADERS="$HEADERS 3rdparty/everest/include/everest/everest.h 3rdparty/everest/include/everest/x25519.h"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user