Files
app-ethereum/src_features/getAppConfiguration/cmd_getAppConfiguration.c

22 lines
669 B
C
Raw Normal View History

2020-06-27 13:24:04 +02:00
#include "shared_context.h"
#include "apdu_constants.h"
2020-12-01 16:20:13 +01:00
void handleGetAppConfiguration(uint8_t p1,
uint8_t p2,
const uint8_t *workBuffer,
uint8_t dataLength,
2020-12-01 16:20:13 +01:00
unsigned int *flags,
unsigned int *tx) {
UNUSED(p1);
UNUSED(p2);
UNUSED(workBuffer);
UNUSED(dataLength);
UNUSED(flags);
2024-06-21 09:51:53 +02:00
G_io_apdu_buffer[0] = APP_FLAG_EXTERNAL_TOKEN_NEEDED;
G_io_apdu_buffer[1] = MAJOR_VERSION;
G_io_apdu_buffer[2] = MINOR_VERSION;
G_io_apdu_buffer[3] = PATCH_VERSION;
2020-12-01 16:20:13 +01:00
*tx = 4;
THROW(0x9000);
2020-06-27 13:24:04 +02:00
}