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