From ba4f9ed7ae1a3cd33e61a32cf29dcb59417abb5e Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Tue, 12 Feb 2019 15:00:01 -0500 Subject: [PATCH] bug fix --- fido2/extensions/solo.c | 8 ++++---- targets/stm32l432/src/app.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fido2/extensions/solo.c b/fido2/extensions/solo.c index 9072588..32be8e4 100644 --- a/fido2/extensions/solo.c +++ b/fido2/extensions/solo.c @@ -38,16 +38,16 @@ int16_t bridge_u2f_to_solo(uint8_t * _chal, uint8_t * _appid, uint8_t klen, uint int i; 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) { case WalletVersion: msg_buf[0] = SOLO_VERSION_MAJ; - msg_buf[0] = SOLO_VERSION_MIN; - u2f_response_writeback((uint8_t*)WALLET_VERSION, sizeof(WALLET_VERSION)-1); + msg_buf[1] = SOLO_VERSION_MIN; + u2f_response_writeback(msg_buf, 2); break; case WalletRng: printf1(TAG_WALLET,"SoloRng\n"); diff --git a/targets/stm32l432/src/app.h b/targets/stm32l432/src/app.h index 8ffe43e..89011f5 100644 --- a/targets/stm32l432/src/app.h +++ b/targets/stm32l432/src/app.h @@ -36,7 +36,7 @@ //#define USING_DEV_BOARD -//#define ENABLE_U2F_EXTENSIONS +#define ENABLE_U2F_EXTENSIONS #define ENABLE_U2F