summaryrefslogtreecommitdiffstats
path: root/src/auths/pwcheck.h
blob: 1287ea25382d2b7d3e02ff3820700df391bff27b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*************************************************
*     Exim - an Internet mail transport agent    *
*************************************************/

/* Copyright (c) University of Cambridge 1995 - 2009 */
/* See the file NOTICE for conditions of use and distribution. */

/* This file provides support for authentication via the Cyrus SASL pwcheck
daemon (whence its name) and the newer saslauthd daemon. */

/* Error codes used internally within the authentication functions */

/* PWCHECK_OK   - auth successful
   PWCHECK_NO   - access denied
   PWCHECK_FAIL - [temporary] failure */

#define PWCHECK_OK   0
#define PWCHECK_NO   1
#define PWCHECK_FAIL 2

/* Cyrus functions for doing the business. */

extern int pwcheck_verify_password(const char *, const char *, const char **);
extern int saslauthd_verify_password(const uschar *, const uschar *,
           const uschar *, const uschar *, const uschar **);

/* End of pwcheck.h */