This commit is contained in:
Conor Patrick 2019-02-12 15:00:01 -05:00
parent eb2d377ffb
commit ba4f9ed7ae
2 changed files with 5 additions and 5 deletions

View File

@ -38,16 +38,16 @@ int16_t bridge_u2f_to_solo(uint8_t * _chal, uint8_t * _appid, uint8_t klen, uint
int i; int i;
int8_t ret = 0; int8_t ret = 0;
wallet_request * req = (wallet_request *) msg_buf; wallet_request * req = (wallet_request *) keyh;
printf1(TAG_WALLET, "u2f-solo [%d]: ", reqlen); dump_hex1(TAG_WALLET, msg_buf, reqlen); printf1(TAG_WALLET, "u2f-solo [%d]: ", reqlen); dump_hex1(TAG_WALLET, keyh, reqlen);
switch(req->operation) switch(req->operation)
{ {
case WalletVersion: case WalletVersion:
msg_buf[0] = SOLO_VERSION_MAJ; msg_buf[0] = SOLO_VERSION_MAJ;
msg_buf[0] = SOLO_VERSION_MIN; msg_buf[1] = SOLO_VERSION_MIN;
u2f_response_writeback((uint8_t*)WALLET_VERSION, sizeof(WALLET_VERSION)-1); u2f_response_writeback(msg_buf, 2);
break; break;
case WalletRng: case WalletRng:
printf1(TAG_WALLET,"SoloRng\n"); printf1(TAG_WALLET,"SoloRng\n");

View File

@ -36,7 +36,7 @@
//#define USING_DEV_BOARD //#define USING_DEV_BOARD
//#define ENABLE_U2F_EXTENSIONS #define ENABLE_U2F_EXTENSIONS
#define ENABLE_U2F #define ENABLE_U2F