|
@@ -622,8 +622,19 @@ shellmatta_retCode_t shellmatta_processData(shellmatta_handle_t handle,
|
|
|
{
|
|
|
utils_writeEcho(inst, "\r\n", 2u);
|
|
|
shellmatta_opt_init(inst, cmdLen + 1u);
|
|
|
+
|
|
|
+#ifdef SHELLMATTA_AUTHENTICATION
|
|
|
+ cmdRet = SHELLMATTA_OK;
|
|
|
+ if (SHELLMATTA_OK == shellmatta_auth_is_cmd_permitted(handle, cmd))
|
|
|
+ {
|
|
|
+ cmdExecuted = 1u;
|
|
|
+ cmdRet = cmd->cmdFct(handle, inst->buffer, inst->inputCount);
|
|
|
+ }
|
|
|
+
|
|
|
+#else
|
|
|
cmdExecuted = 1u;
|
|
|
cmdRet = cmd->cmdFct(handle, inst->buffer, inst->inputCount);
|
|
|
+#endif
|
|
|
|
|
|
switch(cmdRet)
|
|
|
{
|