This module handles audit message processing for ESF Manager. Audit messages are sent to the COBOL Audit Facility.
Definition in file saf-audit.c.
Go to the source code of this file.
Functions | |
| TEventData | SafEventData (int type, const void *data, int length) |
| Construct a TEventData structure. | |
| mf_uns32 | SafInitAuditing (struct SafInit *init) |
| ESF Auditing Initialization. | |
| SafRet | SafRaiseAuditEvent (int eventid, int category, int numdata,...) |
| Raise a general audit event. | |
| SafRet | SafRaiseAuditEventA (int eventid, int category, int numdata, struct TEventData *data[]) |
| Raise a general audit event, with data supplied as an array. | |
| struct TEventData SafEventData | ( | int | type, | |
| const void * | data, | |||
| int | length | |||
| ) |
Construct a TEventData structure.
Return a TEventData structure constructed from the input parameters.
| [in] | type | Event type |
| [in] | data | Pointer to event data |
| [in] | length | Length of event data |
Definition at line 154 of file saf-audit.c.
References TEventData::data.
Referenced by SafAdmin(), SafAuth(), SafUpdate(), SafVerify(), and SafXauth().
| mf_uns32 SafInitAuditing | ( | struct SafInit * | init | ) |
ESF Auditing Initialization.
This function is invoked by the ESF Manager Initialization routine to set the processing environment.
| [in] | init | ESF Manager initialization area (see SafInit). |
Definition at line 175 of file saf-audit.c.
References SafInit::Config, SafGetEnvFunc(), SafINIT_ENVFUNC, and SafINIT_EXTERNAL.
| SafRet SafRaiseAuditEvent | ( | int | eventid, | |
| int | category, | |||
| int | numdata, | |||
| ... | ||||
| ) |
Raise a general audit event.
Raise an audit event with the specified ID, category, and optional data.
| [in] | eventid | Event ID |
| [in] | category | Event category |
| [in] | numdata | Number of TEventData structures that follow |
| [in] | ... | TEventData structures containing event data |
Definition at line 248 of file saf-audit.c.
References TEventData::data, TEventData::datalen, TEventData::datatype, audit_event::event_category, audit_event::event_data, audit_event::event_id, audit_event::event_len, audit_event::event_type, SafLog(), SafMsgCRIT, SafR_EXFAIL, SafR_INTERNAL, SafR_OK, and SafR_RESOURCE.
Referenced by SafAdmin(), SafAuth(), safterm(), SafUpdate(), SafVerify(), and SafXauth().
| SafRet SafRaiseAuditEventA | ( | int | eventid, | |
| int | category, | |||
| int | numdata, | |||
| struct TEventData * | data[] | |||
| ) |
Raise a general audit event, with data supplied as an array.
Raise an audit event with the specified ID, category, and optional data supplied as an array rather than variadic parameters.
| [in] | eventid | Event ID |
| [in] | category | Event category |
| [in] | numdata | Number of TEventData structures that follow |
| [in] | data | Array of TEventData structure pointerss containing event data |
Definition at line 346 of file saf-audit.c.
References TEventData::data, TEventData::datalen, TEventData::datatype, audit_event::event_category, audit_event::event_data, audit_event::event_id, audit_event::event_len, audit_event::event_type, and SafR_OK.