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