From 5a756975c33d0a7febdd6e66e0139c75197d5bd2 Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Wed, 17 Apr 2024 09:47:28 +0200 Subject: [PATCH] Remove deprecated ETH_PLUGIN_RESULT_OK_ALIAS from plugin API --- doc/ethapp_plugins.adoc | 3 --- src/eth_plugin_handler.c | 1 - 2 files changed, 4 deletions(-) diff --git a/doc/ethapp_plugins.adoc b/doc/ethapp_plugins.adoc index 886928a4b..3e2bcbdae 100644 --- a/doc/ethapp_plugins.adoc +++ b/doc/ethapp_plugins.adoc @@ -85,8 +85,6 @@ typedef struct ethPluginInitContract_t { uint8_t *selector; // 4 bytes selector uint32_t dataSize; - char *alias; // 29 bytes alias if ETH_PLUGIN_RESULT_OK_ALIAS set - uint8_t result; } ethPluginInitContract_t; @@ -102,7 +100,6 @@ This message is sent when the selector of the data has been parsed. The followin The following return codes are expected, any other will abort the signing process : * ETH_PLUGIN_RESULT_OK : if the plugin can be successfully initialized - * ETH_PLUGIN_RESULT_OK_ALIAS : if a base64 encoded alias of another plugin to call is copied to the _alias_ field. In this case, the dispatcher will follow the alias chain, and the original plugin will only be called to retrieve its name when using a generic user interface * ETH_PLUGIN_RESULT_FALLBACK : if the signing logic should fallback to the generic one ### ETH_PLUGIN_PROVIDE_PARAMETER diff --git a/src/eth_plugin_handler.c b/src/eth_plugin_handler.c index 43431506c..475a2a40f 100644 --- a/src/eth_plugin_handler.c +++ b/src/eth_plugin_handler.c @@ -207,7 +207,6 @@ eth_plugin_result_t eth_plugin_call(int method, void *parameter) { (uint8_t *) &dataContext.tokenContext.pluginContext; ((ethPluginInitContract_t *) parameter)->pluginContextLength = sizeof(dataContext.tokenContext.pluginContext); - ((ethPluginInitContract_t *) parameter)->alias = dataContext.tokenContext.pluginName; break; case ETH_PLUGIN_PROVIDE_PARAMETER: PRINTF("-- PLUGIN PROVIDE PARAMETER --\n");