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