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