/*
*
*/
/*
*
*/
/*
*
*/
/* Command / ( / ) */
/* Response to / ( / ) */
{
,
,
,
0,
PermArray_,
NULL,
,
0,
PermArray_,
NULL,
,
0,
AuthArray_,
NULL,
1,
2,
3,
0,
,
FALSE,
,
FALSE,
,
FALSE,
,
FALSE,
NULL
},
/* $Copyright ST-Ericsson 2010 $ */
/* NOTE: This is an automatically generated file. DO NOT EDIT! */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "t_command_protocol.h"
#include "r_debug.h"
#include "r_communication_service.h"
#include "commands.h"
#include "command_ids.h"
#include "commands_impl.h"
#include "error_codes.h"
#include "r_serialization.h"
#include "r_command_protocol.h"
#include "audit.h"
#ifdef CFG_ENABLE_AUDIT_CMD
#include "r_loader_sec_lib.h"
#endif
#ifdef CFG_ENABLE_ADBG_LOADER
#include "r_adbg_command.h"
#endif
/*
* Command Permissions Vectors.
*/
/*
* Command Authentication Vectors.
*/
CommandPermissionList_t CommandPermissionList[] = {
/* End of array */
{
0,
(CommandId_e)0,
0,
NULL,
0,
NULL,
0,
FALSE,
FALSE,
FALSE,
FALSE,
NULL
}
};
CommandPermissionList_t *GetAuditData(CommandData_t *CmdData_p)
{
/*
boolean A1_Authentication = FALSE;
boolean CA_Authentication = FALSE;
boolean A1_Factory = FALSE;
boolean A1_RD = FALSE;
boolean A1_Product = FALSE;
boolean A1_Service = FALSE;
uint8 A1_depandancy = 0x00;
uint32 AuthenticationVector = 0; */
int CounterList = 0;
while (CommandPermissionList[CounterList].Group != 0) {
if (CmdData_p->ApplicationNr == CommandPermissionList[CounterList].Group && CmdData_p->CommandNr == CommandPermissionList[CounterList].Command) {
CommandPermissionList[CounterList].DataParam_p = CmdData_p->Payload.Data_p;
return (&CommandPermissionList[CounterList]);
}
CounterList++;
}
return NULL;
}
#ifdef CFG_ENABLE_AUDIT_CMD
ErrorCode_e CommandAudit(CommandData_t *CmdData_p)
{
ErrorCode_e ReturnValue = E_GENERAL_FATAL_ERROR;
CommandPermissionList_t *CmdPermission_p = NULL;
CmdPermission_p = GetAuditData(CmdData_p);
if (NULL == CmdPermission_p) {
ReturnValue = E_UNSUPPORTED_CMD;
goto ErrorExit;
}
ReturnValue = (ErrorCode_e)Do_LoaderSecLib_Audit_Permission_Levels(CmdPermission_p);
if (ReturnValue != E_SUCCESS) {
ReturnValue = E_AUDITING_FAILED;
}
ErrorExit:
return ReturnValue;
}
#endif
CommandPermission_e PermArray_[] = {
};
CommandPermission_e PermArray_[] = {
};
CommandAuthentication_e AuthArray_[] = {
};
CommandAuthentication_e AuthArray_[] = {
};