diff --git a/fido2/ctaphid.c b/fido2/ctaphid.c index 6f31d62..e765163 100644 --- a/fido2/ctaphid.c +++ b/fido2/ctaphid.c @@ -734,6 +734,11 @@ uint8_t ctaphid_custom_command(int len, CTAP_RESPONSE * ctap_resp, CTAPHID_WRITE ctaphid_write(wb, NULL, 0); return 1; #endif +#if defined(SOLO) + case CTAPHID_REBOOT: + device_reboot(); + return 1; +#endif #if !defined(IS_BOOTLOADER) case CTAPHID_GETRNG: diff --git a/fido2/ctaphid.h b/fido2/ctaphid.h index 5294f66..91bb65c 100644 --- a/fido2/ctaphid.h +++ b/fido2/ctaphid.h @@ -27,6 +27,7 @@ #define CTAPHID_BOOT (TYPE_INIT | 0x50) #define CTAPHID_ENTERBOOT (TYPE_INIT | 0x51) #define CTAPHID_ENTERSTBOOT (TYPE_INIT | 0x52) +#define CTAPHID_REBOOT (TYPE_INIT | 0x53) #define CTAPHID_GETRNG (TYPE_INIT | 0x60) #define CTAPHID_GETVERSION (TYPE_INIT | 0x61) #define CTAPHID_LOADKEY (TYPE_INIT | 0x62)