#include <cat/boks.h>
int catboks_auth(const char *route, const char *user, const char *prog);
The function returns zero if access is granted.
If the prog argument, which should be set to the program or service name, is non-null, the authentication attempt will be logged by the server on behalf of the caller.