mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 10:56:02 +01:00
lib: wrap crypt API to hide errno usage
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> Reviewed-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
committed by
Tom Rini
parent
26dd993657
commit
29bbe71ccf
@@ -1,12 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/* Copyright (C) 2020 Steffen Jaeckel <jaeckel-floss@eyet-services.de> */
|
||||
|
||||
#ifndef USE_HOSTCC
|
||||
#include "common.h"
|
||||
#else
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#include "u-boot/sha512.h"
|
||||
|
||||
#define INCLUDE_sha512crypt 1
|
||||
|
||||
Reference in New Issue
Block a user