Appendix I. Detailed Implementation for the Case Study in Chapter 3
To implement a group plug-in, application programming interfaces (APIs) are required. Note that when DB2 called the
Init function, it passed a callback function
db2secLogMessage where the plug-in code can log debugging or diagnostic information to
- Assign all the function addresses to the function pointers.
plugintype = DB2SEC_PLUGIN_TYPE_GROUP.
- Set the version based on the version of the security plug-in API you are using. It is suggested that you use the latest version number (that is, the define
DB2SEC_API_VERSIONfrom the header file
Listing I.1. A Sample Listing for the