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