In file security.h:

int key_owns

(useracc_t* user, int key)

Check if a user owns a key.

Documentation

Check if a user owns a key.

Checks if a user owns a key, taking into account the Master Key privilege and the user's class keyring. This is the function to use if you need to check a user for ownership of a key.

Parameters:
- user Pointer to the user's account structure.
- key Number of the key to check for.
Returns:
Zero if the user does not have the key; non-zero if they do.

Alphabetic index



This page was generated with the help of DOC++.