crypt.h 524 B

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