X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/c86f62585c172e92377d4a5d58b754ed72094cc3..0756eb3cb50d73a77b486e47528f7cb1bffdb299:/src/src/auths/pwcheck.h diff --git a/src/src/auths/pwcheck.h b/src/src/auths/pwcheck.h new file mode 100644 index 000000000..7e2c01782 --- /dev/null +++ b/src/src/auths/pwcheck.h @@ -0,0 +1,29 @@ +/* $Cambridge: exim/src/src/auths/pwcheck.h,v 1.1 2004/10/07 13:10:01 ph10 Exp $ */ + +/************************************************* +* Exim - an Internet mail transport agent * +*************************************************/ + +/* Copyright (c) University of Cambridge 1995 - 2004 */ +/* 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 */