aboutsummaryrefslogtreecommitdiff
path: root/include/crypt.h
blob: f18a1705d4dfa43e91f4171a8fd7f1ac653267bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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);