Source code

 

The exit source code file is called amqsspin.c. It is in C:\Program Files\IBM\WebSphere MQ\Tools\c\Samples.

If you modify the source code, recompile the modified source.

You compile and link it in the same way as any other channel exit for the relevant platform, except that SSPI headers need to be accessed at compile time, and the SSPI security libraries, together with any recommended associated libraries, need to be accessed at link time.

Before you execute the following command, make sure that cl.exe, and the Visual C++ library and the include folder are available in your path. For example:

cl /VERBOSE /LD /MT /I<path_to_Microsoft_platform_SDK\include> 
/I<path_to_WebSphere MQ\tools\c\include> amqsspin.c /DSECURITY_WIN32 
-link  /DLL /EXPORT:SCY_KERBEROS /EXPORT:SCY_NTLM STACK:8192

The source code does not include any provision for tracing or error handling. If you modify and use the source code, add your own tracing and error-handling routines.

 

Parent topic:

Using the SSPI security exit on Windows systems


fg17990_