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