55 lines
1.6 KiB
C
55 lines
1.6 KiB
C
|
/****************************************************************************
|
||
|
|
||
|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||
|
|
||
|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||
|
be copied by any method or incorporated into another program without
|
||
|
the express written consent of Aerospace C.Power. This Information or any portion
|
||
|
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||
|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||
|
liability for its use in any way and conveys no license or title under
|
||
|
any patent or copyright and makes no representation or warranty that this
|
||
|
Information is free from patent or copyright infringement.
|
||
|
|
||
|
****************************************************************************/
|
||
|
|
||
|
#ifndef CVG_SEC_INTERNAL_H
|
||
|
#define CVG_SEC_INTERNAL_H
|
||
|
|
||
|
/* os shim includes */
|
||
|
#include "os_types.h"
|
||
|
|
||
|
/* public api includes */
|
||
|
#include "plc_fr.h"
|
||
|
|
||
|
/* public api includes */
|
||
|
#include "cvg.h"
|
||
|
#include "cvg_sec_wl.h"
|
||
|
#include "cvg_sec_auth_internal.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/* per vdev security descriptor */
|
||
|
typedef struct _cvg_sec_vdev {
|
||
|
/* pointer of cvg vdev */
|
||
|
cvg_vdev_t *vdev;
|
||
|
/* while_black list table */
|
||
|
cvg_sec_wbl_tab_t *wbl;
|
||
|
/* whitelist enable flag */
|
||
|
uint8_t wl_enable;
|
||
|
/* blacklist enable flag */
|
||
|
uint8_t bl_enable;
|
||
|
#if (PLC_SUPPORT_AUTH_TYPE)
|
||
|
/* security authorized info */
|
||
|
cvg_sec_auth_vdev_t sec_auth;
|
||
|
#endif
|
||
|
} cvg_sec_vdev_t;
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* CVG_SEC_INTERNAL_H */
|