17c478bd9Sstevel@tonic-gate #include <config.h>
27c478bd9Sstevel@tonic-gate 
37c478bd9Sstevel@tonic-gate #include <string.h>
47c478bd9Sstevel@tonic-gate #include <stdlib.h>
57c478bd9Sstevel@tonic-gate #include <stdio.h>
67c478bd9Sstevel@tonic-gate #ifndef macintosh
77c478bd9Sstevel@tonic-gate #include <sys/stat.h>
87c478bd9Sstevel@tonic-gate #endif
97c478bd9Sstevel@tonic-gate #include <fcntl.h>
107c478bd9Sstevel@tonic-gate #include <assert.h>
117c478bd9Sstevel@tonic-gate 
127c478bd9Sstevel@tonic-gate #include <sasl.h>
137c478bd9Sstevel@tonic-gate #include <saslplug.h>
147c478bd9Sstevel@tonic-gate #include <saslutil.h>
157c478bd9Sstevel@tonic-gate 
167c478bd9Sstevel@tonic-gate #include "plugin_common.h"
177c478bd9Sstevel@tonic-gate 
187c478bd9Sstevel@tonic-gate #ifdef macintosh
197c478bd9Sstevel@tonic-gate #include <sasl_gssapiv2_plugin_decl.h>
207c478bd9Sstevel@tonic-gate #endif
217c478bd9Sstevel@tonic-gate 
227c478bd9Sstevel@tonic-gate #ifdef WIN32
DllMain(HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)23*1da57d55SToomas Soome BOOL APIENTRY DllMain( HANDLE hModule,
24*1da57d55SToomas Soome                        DWORD  ul_reason_for_call,
257c478bd9Sstevel@tonic-gate                        LPVOID lpReserved
267c478bd9Sstevel@tonic-gate 					 )
277c478bd9Sstevel@tonic-gate {
287c478bd9Sstevel@tonic-gate     switch (ul_reason_for_call)
297c478bd9Sstevel@tonic-gate 	{
307c478bd9Sstevel@tonic-gate 		case DLL_PROCESS_ATTACH:
317c478bd9Sstevel@tonic-gate 		case DLL_THREAD_ATTACH:
327c478bd9Sstevel@tonic-gate 		case DLL_THREAD_DETACH:
337c478bd9Sstevel@tonic-gate 		case DLL_PROCESS_DETACH:
347c478bd9Sstevel@tonic-gate 			break;
357c478bd9Sstevel@tonic-gate     }
367c478bd9Sstevel@tonic-gate     return TRUE;
377c478bd9Sstevel@tonic-gate }
387c478bd9Sstevel@tonic-gate #endif
397c478bd9Sstevel@tonic-gate 
407c478bd9Sstevel@tonic-gate SASL_CLIENT_PLUG_INIT( gssapiv2 )
417c478bd9Sstevel@tonic-gate SASL_SERVER_PLUG_INIT( gssapiv2 )
427c478bd9Sstevel@tonic-gate 
43