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