ask for PIN in GetAddress and GetPublicKey messages

This commit is contained in:
Pavol Rusnak 2015-03-30 14:38:33 +02:00
parent f5fb0c364e
commit 7c6d2fe395
1 changed files with 10 additions and 0 deletions

View File

@ -268,6 +268,11 @@ void fsm_msgGetPublicKey(GetPublicKey *msg)
{
RESP_INIT(PublicKey);
if (!protectPin(true)) {
layoutHome();
return;
}
const HDNode *node = fsm_getDerivedNode(msg->address_n, msg->address_n_count);
if (!node) return;
@ -500,6 +505,11 @@ void fsm_msgGetAddress(GetAddress *msg)
{
RESP_INIT(Address);
if (!protectPin(true)) {
layoutHome();
return;
}
const CoinType *coin = fsm_getCoin(msg->coin_name);
if (!coin) return;
const HDNode *node = fsm_getDerivedNode(msg->address_n, msg->address_n_count);