xref: /illumos-gate/usr/src/lib/sasl_plugins/login/login_init.c (revision eb9a1df2aeb866bf1de4494433b6d7e5fa07b3ae)
1 
2 #include <config.h>
3 
4 #include <string.h>
5 #include <stdlib.h>
6 #include <stdio.h>
7 #ifndef macintosh
8 #include <sys/stat.h>
9 #endif
10 #include <fcntl.h>
11 #include <assert.h>
12 
13 #include <sasl.h>
14 #include <saslplug.h>
15 #include <saslutil.h>
16 
17 #include "plugin_common.h"
18 
19 #ifdef macintosh
20 #include <sasl_login_plugin_decl.h>
21 #endif
22 
23 #ifdef WIN32
24 BOOL APIENTRY DllMain( HANDLE hModule,
25                        DWORD  ul_reason_for_call,
26                        LPVOID lpReserved
27 					 )
28 {
29     switch (ul_reason_for_call)
30 	{
31 		case DLL_PROCESS_ATTACH:
32 		case DLL_THREAD_ATTACH:
33 		case DLL_THREAD_DETACH:
34 		case DLL_PROCESS_DETACH:
35 			break;
36     }
37     return TRUE;
38 }
39 #endif
40 
41 SASL_CLIENT_PLUG_INIT( login )
42 SASL_SERVER_PLUG_INIT( login )
43 
44