Skip to content
Permalink
Browse files

ask for PIN in GetAddress and GetPublicKey messages

  • Loading branch information...
prusnak committed Mar 30, 2015
1 parent f5fb0c3 commit 7c6d2fe395c8475efbc93257892f0efac3d1511c
Showing with 10 additions and 0 deletions.
  1. +10 −0 firmware/fsm.c
@@ -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);

0 comments on commit 7c6d2fe

Please sign in to comment.
You can’t perform that action at this time.