SPDX: license tags (mostly by guesswork)
[exim.git] / src / src / auths / pwcheck.h
1 /*************************************************
2 *     Exim - an Internet mail transport agent    *
3 *************************************************/
4
5 /* Copyright (c) University of Cambridge 1995 - 2009 */
6 /* See the file NOTICE for conditions of use and distribution. */
7 /* SPDX-License-Identifier: GPL-2.0-only */
8
9 /* This file provides support for authentication via the Cyrus SASL pwcheck
10 daemon (whence its name) and the newer saslauthd daemon. */
11
12 /* Error codes used internally within the authentication functions */
13
14 /* PWCHECK_OK   - auth successful
15    PWCHECK_NO   - access denied
16    PWCHECK_FAIL - [temporary] failure */
17
18 #define PWCHECK_OK   0
19 #define PWCHECK_NO   1
20 #define PWCHECK_FAIL 2
21
22 /* Cyrus functions for doing the business. */
23
24 extern int pwcheck_verify_password(const char *, const char *, const char **);
25 extern int saslauthd_verify_password(const uschar *, const uschar *,
26            const uschar *, const uschar *, const uschar **);
27
28 /* End of pwcheck.h */