Build courier-authlib (0.60.2-0hcoop7).
[hcoop/debian/courier-authlib.git] / courierauthdebug.h
CommitLineData
d9898ee8 1#ifndef courierauthdebug_h
2#define courierauthdebug_h
3
4/*
5** Copyright 2002-2004 Double Precision, Inc. See COPYING for
6** distribution information.
7*/
8#include "courier_auth_config.h"
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14static const char courierauthdebug_h_rcsid[]="$Id: courierauthdebug.h,v 1.4 2006/10/28 19:22:52 mrsam Exp $";
15
16#define DEBUG_LOGIN_ENV "DEBUG_LOGIN"
17#define DEBUG_MESSAGE_SIZE (1<<10)
18
19void courier_authdebug_login_init( void );
20void courier_authdebug_login( int level, const char *fmt, ... );
21int courier_authdebug_printf( const char *fmt, ... );
22int courier_safe_printf( const char *fmt, ... );
23int courier_auth_err( const char *fmt, ... );
24struct authinfo;
25int courier_authdebug_authinfo(const char *pfx, const struct authinfo *auth,
26 const char *clearpasswd, const char *passwd);
27
28extern int courier_authdebug_login_level;
29
30#define DPRINTF if (courier_authdebug_login_level) courier_authdebug_printf
31
32#define DPWPRINTF if (courier_authdebug_login_level >= 2) courier_authdebug_printf
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif