1 /* $Cambridge: exim/src/src/auths/pwcheck.h,v 1.4 2007/01/08 10:50:19 ph10 Exp $ */
3 /*************************************************
4 * Exim - an Internet mail transport agent *
5 *************************************************/
7 /* Copyright (c) University of Cambridge 1995 - 2007 */
8 /* See the file NOTICE for conditions of use and distribution. */
10 /* This file provides support for authentication via the Cyrus SASL pwcheck
11 daemon (whence its name) and the newer saslauthd daemon. */
13 /* Error codes used internally within the authentication functions */
15 /* PWCHECK_OK - auth successful
16 PWCHECK_NO - access denied
17 PWCHECK_FAIL - [temporary] failure */
21 #define PWCHECK_FAIL 2
23 /* Cyrus functions for doing the business. */
25 extern int pwcheck_verify_password(const char *, const char *, const char **);
26 extern int saslauthd_verify_password(const uschar *, const uschar *,
27 const uschar *, const uschar *, const uschar **);
29 /* End of pwcheck.h */