Skip to main content

Name

ec_authz_check — Check if commands are authorized

Synopsis

#include "security/auth_lookup.h"

| int **ec_authz_check** ( | cc, |   | |   | e, |   | |   | unpriv_commands); |   |

command_construct * <var class="pdparam">cc</var>; Event * <var class="pdparam">e</var>; const char ** <var class="pdparam">unpriv_commands</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Check whether commands are authorized.

Parameters

cc

A command construct. See “command_construct”.

e

An event. See “Event”.

unpriv_commands

The commands.

Return Values

This function returns EC_AUTH_OK, EC_AUTH_FAIL or EC_AUTH_ERROR.

Threading

It is legal to call this function in any thread.

Was this page helpful?