1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /* Copyright (C) 2020 Steffen Jaeckel <jaeckel-floss@eyet-services.de> */
5 * Compare should with the processed passphrase.
7 * @should The crypt-style string to compare against
8 * @passphrase The plaintext passphrase
9 * @equal Pointer to an int where the result is stored
12 * Return: 0 on success, error code of errno else
14 int crypt_compare(const char *should, const char *passphrase, int *equal);