GSS_S_PROMPTING_NEEDED is a bit
[cyrus-sasl.git] / saslauthd / globals.h
1 /*******************************************************************************
2  * *****************************************************************************
3  * *
4  * * globals.h
5  * *
6  * * Description:  Header file for all application wide globale variables.
7  * *
8  * * Copyright (c) 1997-2000 Messaging Direct Ltd.
9  * * All rights reserved.
10  * *
11  * * Redistribution and use in source and binary forms, with or without
12  * * modification, are permitted provided that the following conditions
13  * * are met:
14  * *
15  * * 1. Redistributions of source code must retain the above copyright
16  * *    notice, this list of conditions and the following disclaimer.
17  * *
18  * * 2. Redistributions in binary form must reproduce the above copyright
19  * *    notice, this list of conditions and the following disclaimer in the
20  * *    documentation and/or other materials provided with the distribution.
21  * *
22  * * THIS SOFTWARE IS PROVIDED ``AS IS''. ANY EXPRESS OR IMPLIED WARRANTIES,
23  * * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24  * * IN NO EVENT SHALL JEREMY RUMPF OR ANY CONTRIBUTER TO THIS SOFTWARE BE
25  * * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
27  * * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31  * * THE POSSIBILITY OF SUCH DAMAGE
32  * *
33  * * HISTORY
34  * * 
35  * * This source file created using 8 space tabs.
36  * *
37  * ******************************************************************************
38  ********************************************************************************/
39
40 #ifndef _GLOBALS_H
41 #define _GLOBALS_H
42
43 #include "mechanisms.h"
44
45
46 /* saslauthd-main.c */
47 extern int              g_argc;
48 extern char             **g_argv;
49 extern int              flags;
50 extern int              num_procs;
51 extern char             *mech_option;
52 extern char             *run_path;
53 extern authmech_t       *auth_mech;
54
55
56 /* flags bits */
57 #define VERBOSE                 (1 << 1)
58 #define LOG_USE_SYSLOG          (1 << 2)
59 #define LOG_USE_STDERR          (1 << 3)
60 #define AM_MASTER               (1 << 4)
61 #define USE_ACCEPT_LOCK         (1 << 5)
62 #define DETACH_TTY              (1 << 6)
63 #define CACHE_ENABLED           (1 << 7)
64 #define USE_PROCESS_MODEL       (1 << 8)
65 #define CONCAT_LOGIN_REALM      (1 << 9)
66
67
68 #endif  /* _GLOBALS_H */