GSS_S_PROMPTING_NEEDED is a bit
[cyrus-sasl.git] / saslauthd / mechanisms.c
1 /* COPYRIGHT
2  * Copyright (c) 1997-2000 Messaging Direct Ltd.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY MESSAGING DIRECT LTD. ``AS IS'' AND ANY
15  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL MESSAGING DIRECT LTD. OR
18  * ITS EMPLOYEES OR AGENTS BE LIABLE FOR ANY DIRECT, INDIRECT,
19  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
21  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
23  * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
24  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25  * DAMAGE.
26  * END COPYRIGHT */
27
28 /* SYNOPSIS
29  * mechanisms[] contains the NULL terminated list of supported
30  * authentication drivers.
31  * END SYNOPSIS */
32
33 #ifdef __GNUC__
34 #ident "$Id: mechanisms.c,v 1.8 2006/03/13 20:17:09 mel Exp $"
35 #endif
36
37 /* PUBLIC DEPENDENCIES */
38 #include "mechanisms.h"
39
40 #ifdef AUTH_DCE
41 # include "auth_dce.h"
42 #endif /* AUTH_DCE */
43 #ifdef AUTH_SHADOW
44 # include "auth_shadow.h"
45 #endif /* AUTH_SHADOW */
46 #ifdef AUTH_SIA
47 # include "auth_sia.h"
48 #endif /* AUTH_SIA */
49 #include "auth_krb4.h"
50 #include "auth_krb5.h"
51 #include "auth_getpwent.h"
52 #include "auth_sasldb.h"
53 #include "auth_rimap.h"
54 #ifdef AUTH_PAM
55 # include "auth_pam.h"
56 #endif
57 #ifdef AUTH_LDAP
58 #include "auth_ldap.h"
59 #endif
60 #ifdef AUTH_HTTPFORM
61 #include "auth_httpform.h"
62 #endif
63 /* END PUBLIC DEPENDENCIES */
64
65 authmech_t mechanisms[] =
66 {
67 #ifdef AUTH_SASLDB
68     {   "sasldb",       0,                      auth_sasldb },
69 #endif /* AUTH_SASLDB */
70 #ifdef AUTH_DCE
71     {   "dce",          0,                      auth_dce },
72 #endif /* AUTH_DCE */
73     {   "getpwent",     0,                      auth_getpwent },
74 #ifdef AUTH_KRB4
75     {   "kerberos4",    auth_krb4_init,         auth_krb4 },
76 #endif /* AUTH_KRB4 */
77 #ifdef AUTH_KRB5
78     {   "kerberos5",    auth_krb5_init,         auth_krb5 },
79 #endif /* AUTH_KRB5 */
80 #ifdef AUTH_PAM
81     {   "pam",          0,                      auth_pam },
82 #endif /* AUTH_PAM */
83     {   "rimap",        auth_rimap_init,        auth_rimap },
84 #ifdef AUTH_SHADOW
85     {   "shadow",       0,                      auth_shadow },
86 #endif /* AUTH_SHADOW */
87 #ifdef AUTH_SIA
88     {   "sia",          0,                      auth_sia },
89 #endif /* AUTH_SIA */
90 #ifdef AUTH_LDAP
91     {   "ldap",         auth_ldap_init,         auth_ldap },
92 #endif /* AUTH_LDAP */
93 #ifdef AUTH_HTTPFORM
94     {   "httpform",     auth_httpform_init,     auth_httpform },
95 #endif /* AUTH_LDAP */
96     {   0,              0,                      0 }
97 };
98