saf-audit.h

00001 /****************************************************************************
00002  *
00003  * Copyright (C) 2006-2007 Micro Focus (IP) Limited.
00004  * All rights reserved.
00005  *
00006  * The software and information contained herein are proprietary to, and
00007  * comprise valuable trade secrets of, Micro Focus International Ltd., 
00008  * which intends to preserve as trade secrets such software and 
00009  * information. This software is an unpublished copyright of Micro Focus  
00010  * and may not be used, copied, transmitted, or stored in any manner.  
00011  * This software and information or any other copies thereof may not be
00012  * provided or otherwise made available to any other person.
00013  *
00014  *      Enterprise Server SAF (Security) Manager
00015  *      SAF Auditing
00016  *
00017  *      @(#)saf-audit.h $Revision: 1.8 $     
00018  *
00019  *      $Date: 2009/04/07 14:56:53 $
00020  *
00021  ****************************************************************************/
00022 
00023 /* Start of source module saf-audit.h */
00024 #if !defined(SafAUDIT_H)
00025 #define SafAUDIT_H
00026 
00027 /*AUDIT_EVENT_CATEGORY_SYSTEM*/
00028 #define AUDIT_EVENT_SAFMGR_INITIALIZING 0
00029 #define AUDIT_EVENT_SAFMGR_STARTED 1
00030 #define AUDIT_EVENT_SAFMGR_TERMINATING 2
00031 
00032 /*AUDIT_EVENT_CATEGORY_SEC_API_REQ_CHECK*/
00033 #define AUDIT_EVENT_CHECK_VERIFY 0
00034 #define AUDIT_EVENT_CHECK_AUTH 1
00035 #define AUDIT_EVENT_CHECK_XAUTH 2
00036 
00037 /*AUDIT_EVENT_CATEGORY_SEC_API_RES_ALLOW*/
00038 #define AUDIT_EVENT_VERIFY_SUCCESS 0
00039 #define AUDIT_EVENT_VERIFY_ALLOW_UNKNOWN 1
00040 
00041 /*AUDIT_EVENT_CATEGORY_SEC_API_RES_DENY*/
00042 #define AUDIT_EVENT_VERIFY_PWD_INVALID 0
00043 #define AUDIT_EVENT_VERIFY_PWD_EXPIRED 1
00044 #define AUDIT_EVENT_VERIFY_PWD_CHANGE 2
00045 #define AUDIT_EVENT_VERIFY_DENY_UNKNOWN 3
00046 #define AUDIT_EVENT_VERIFY_USR_NOT_IN_GROUP 4
00047 #define AUDIT_EVENT_VERIFY_FAIL_UNKNOWN 5
00048 #define AUDIT_EVENT_AUTH_DENY 6
00049 #define AUDIT_EVENT_XAUTH_DENY 7
00050             
00051 /*AUDIT_EVENT_CATEGORY_SEC_API_RES_ERROR*/
00052 #define AUDIT_EVENT_VERIFY_ESM_ERROR 0
00053 #define AUDIT_EVENT_AUTH_ESM_ERROR 1
00054 #define AUDIT_EVENT_XAUTH_ESM_ERROR 2
00055 #define AUDIT_EVENT_ADMIN_ESM_ERROR 3
00056 #define AUDIT_EVENT_UPDATE_ESM_ERROR 4
00057 
00058 /*AUDIT_EVENT_CATEGORY_AUDIT_FACILITY*/
00059 /*AUDIT_EVENT_CATEGORY_UNKNOWN*/
00060 
00061 /*AUDIT_EVENT_CATEGORY_SEC_API_REQ_DEFINE*/
00062 #define AUDIT_EVENT_ADMIN_LIST 0
00063 #define AUDIT_EVENT_ADMIN_ADD 1
00064 #define AUDIT_EVENT_ADMIN_DELETE 2
00065 #define AUDIT_EVENT_ADMIN_ALTER 3
00066 #define AUDIT_EVENT_ADMIN_SETPWD 4
00067 #define AUDIT_EVENT_ADMIN_SETOPT 5
00068 
00069 /*AUDIT_EVENT_CATEGORY_SEC_API_REQ_OTHER*/
00070 #define AUDIT_EVENT_UPDATE_NOTIFY 0
00071 
00072 /*AUDIT_EVENT_CATEGORY_SEC_API_RES_SUCCESS*/
00073 #define AUDIT_EVENT_ADMIN_SUCCESS 0
00074 #define AUDIT_EVENT_UPDATE_SUCCESS 1
00075 
00076 #define AUDIT_EVENT_VERSION     0
00077 
00078 struct TEventData
00079 {
00080   mf_s32 datalen;
00081   mf_s32 datatype;
00082   const void* data;
00083 };
00084 
00085 SafRet SafRaiseAuditEvent(int eventid, int category, int numdata, ...);
00086 SafRet SafRaiseAuditEventA(int eventid, int category, int numdata,
00087                            struct TEventData *data[]);
00088 struct TEventData SafEventData(int type, const void *data, int length);
00089 mf_uns32 SafInitAuditing(struct SafInit* init);
00090 
00091 #endif
00092 
00093 /* End of saf-audit.h */
00094