GetArguments
Reads the arguments for this authorization mechanism from the authorization policy database.
Declaration
int (*)(struct __OpaqueAuthorizationEngine *, const struct AuthorizationValueVector **) GetArguments;Parameters
- inEngine:
An opaque handle that is passed to your plug-in when the authorization engine calls your Mechanismcreate function.
- outArguments:
On input, allocate a pointer to an Authorizationvaluevector structure. On output, the structure contains the number of arguments and a pointer to the data. Because your Authorizationvaluevector structure does not own the data, you must not deallocate the structure or the data pointed to by the structure.
Return Value
A result code. Possible results are errAuthorizationSuccess (no error) and errAuthorizationInternal (Security Server internal error).
Discussion
The authorization policy database might contain arguments for each authentication mechanism. You can use this function to retrieve these arguments.
The authorization engine sends you the entry point to the GetArguments function in an AuthorizationCallbacks structure when you call the AuthorizationPluginCreate function.