GSS_S_PROMPTING_NEEDED is a bit
[cyrus-sasl.git] / plugins / makeinit.sh
1 for mech in anonymous crammd5 digestmd5 gssapiv2 kerberos4 login ntlm otp passdss plain srp gs2; do
2
3 echo "
4 #include <config.h>
5
6 #include <string.h>
7 #include <stdlib.h>
8 #include <stdio.h>
9 #ifndef macintosh
10 #include <sys/stat.h>
11 #endif
12 #include <fcntl.h>
13 #include <assert.h>
14
15 #include <sasl.h>
16 #include <saslplug.h>
17 #include <saslutil.h>
18
19 #include \"plugin_common.h\"
20
21 #ifdef macintosh
22 #include <sasl_${mech}_plugin_decl.h>
23 #endif
24
25 #ifdef WIN32
26 BOOL APIENTRY DllMain( HANDLE hModule, 
27                        DWORD  ul_reason_for_call, 
28                        LPVOID lpReserved
29                                          )
30 {
31     switch (ul_reason_for_call)
32         {
33                 case DLL_PROCESS_ATTACH:
34                 case DLL_THREAD_ATTACH:
35                 case DLL_THREAD_DETACH:
36                 case DLL_PROCESS_DETACH:
37                         break;
38     }
39     return TRUE;
40 }
41 #endif
42
43 SASL_CLIENT_PLUG_INIT( $mech )
44 SASL_SERVER_PLUG_INIT( $mech )
45 " > ${mech}_init.c
46 done
47
48 for mech in sasldb sql ldapdb; do
49
50 echo "
51 #include <config.h>
52
53 #include <string.h>
54 #include <stdlib.h>
55 #include <stdio.h>
56 #ifndef macintosh
57 #include <sys/stat.h>
58 #endif
59 #include <fcntl.h>
60 #include <assert.h>
61
62 #include <sasl.h>
63 #include <saslplug.h>
64 #include <saslutil.h>
65
66 #include \"plugin_common.h\"
67
68 #ifdef WIN32
69 BOOL APIENTRY DllMain( HANDLE hModule, 
70                        DWORD  ul_reason_for_call, 
71                        LPVOID lpReserved
72                                          )
73 {
74     switch (ul_reason_for_call)
75         {
76                 case DLL_PROCESS_ATTACH:
77                 case DLL_THREAD_ATTACH:
78                 case DLL_THREAD_DETACH:
79                 case DLL_PROCESS_DETACH:
80                         break;
81     }
82     return TRUE;
83 }
84 #endif
85
86 SASL_AUXPROP_PLUG_INIT( $mech )
87 " > ${mech}_init.c
88 done
89