How DB2 loads security plug-ins
So that the DB2 database
system has the necessary information to call security plug-in functions,
a security plug-in must have a correctly set up initialization function.
Return codes for security plug-ins
All security plug-in APIs must return an integer value
to indicate the success or failure of the execution of the API. A
return code value of 0 indicates that
the API ran successfully. All negative return codes, with the exception
of -3, -4,
and -5, indicate that the API encountered
an error.
Error message handling for security plug-ins
When an error occurs in a security plug-in API, the API
can return an ASCII text string in the errormsg field
to provide a more specific description of the problem than the return
code.
Calling sequences for the security plug-in APIs
The sequence with which the DB2 database
manager calls the security plug-in APIs varies according to the scenario
in which the security plug-in API is called.