5 ** Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
6 ** distribution information.
10 #include "courier_auth_config.h"
12 #include <sys/types.h>
13 #include "courierauth.h"
19 static const char auth_h_rcsid
[]="$Id: auth.h,v 1.11 2004/10/21 00:10:48 mrsam Exp $";
22 /* authcheckpassword is the general password validation routine.
23 ** It returns 0 if the password matches the encrypted password.
26 int authcheckpassword(const char *, /* password */
27 const char *); /* encrypted password */
30 ** authcryptpasswd is a password hashing function, used to create
31 ** new password. password is the cleartext password.
32 ** encryption_hint is a hint to the type of hashing to be used
33 ** (NULL means use a default hash function).
36 char *authcryptpasswd(const char *password
,
37 const char *encryption_hint
);
40 int auth_sys_common( int (*auth_pre_func
)(const char *,
42 int (*)(struct authinfo
*,
48 int (*callback_func
)(struct authinfo
*, void *),