1 #ifndef courierauthdebug_h
2 #define courierauthdebug_h
5 ** Copyright 2002-2004 Double Precision, Inc. See COPYING for
6 ** distribution information.
8 #include "courier_auth_config.h"
15 #define DEBUG_LOGIN_ENV "DEBUG_LOGIN"
16 #define DEBUG_MESSAGE_SIZE (1<<10)
18 void courier_authdebug_login_init( void );
19 void courier_authdebug_login( int level
, const char *fmt
, ... );
20 int courier_authdebug_printf( const char *fmt
, ... );
21 int courier_safe_printf( const char *fmt
, ... );
22 int courier_auth_err( const char *fmt
, ... );
24 int courier_authdebug_authinfo(const char *pfx
, const struct authinfo
*auth
,
25 const char *clearpasswd
, const char *passwd
);
27 extern int courier_authdebug_login_level
;
29 #define DPRINTF if (courier_authdebug_login_level) courier_authdebug_printf
31 #define DPWPRINTF if (courier_authdebug_login_level >= 2) courier_authdebug_printf