
Hello Steffen,
On 08.07.21 01:09, Steffen Jaeckel wrote:
In order to prevent using the global errno, replace it with a static version and create a wrapper function which returns the error value.
Signed-off-by: Steffen Jaeckel jaeckel-floss@eyet-services.de Reviewed-by: Simon Glass sjg@chromium.org
(no changes since v1)
include/crypt.h | 3 ++- lib/crypt/alg-sha256.h | 6 ------ lib/crypt/alg-sha512.h | 6 ------ lib/crypt/crypt-port.h | 18 ++++++++++-------- lib/crypt/crypt-sha256.c | 26 ++++++++++++++++++++++++-- lib/crypt/crypt-sha512.c | 26 ++++++++++++++++++++++++-- lib/crypt/crypt.c | 25 ++++++++++++++----------- test/lib/test_crypt.c | 24 ++++++++++++++++++++++-- 8 files changed, 96 insertions(+), 38 deletions(-)
Reviewed-by: Heiko Schocher hs@denx.de
bye, Heiko