mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 10:48:51 +00:00
29bbe71ccf
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>
14 lines
524 B
C
14 lines
524 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/* Copyright (C) 2020 Steffen Jaeckel <jaeckel-floss@eyet-services.de> */
|
|
|
|
/**
|
|
* Compare should with the processed passphrase.
|
|
*
|
|
* @should The crypt-style string to compare against
|
|
* @passphrase The plaintext passphrase
|
|
* @equal Pointer to an int where the result is stored
|
|
* '0' = unequal
|
|
* '1' = equal
|
|
* @return 0 on success, error code of errno else
|
|
*/
|
|
int crypt_compare(const char *should, const char *passphrase, int *equal);
|