Skip to content

Commit

Permalink
DEBUG definition added
Browse files Browse the repository at this point in the history
  • Loading branch information
younghyunjo committed May 14, 2018
1 parent 950d53d commit acffc01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pair_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "srp.h"
#include "tlv.h"

//#define DEBUG

struct pair_setup {
char* acc_id;
char* setup_code;
Expand All @@ -33,11 +35,13 @@ static const char* header_fmt =

static void _dump_hex(uint8_t* data, int len)
{
#ifdef DEBUG
for (int i=0; i<len; i++) {
if (i != 0 && i & 8 == 0)
printf("\n");
printf("0x%02X ", data[i]);
}
#endif
}

static int _subtlv_decrypt(enum hkdf_key_type htype,
Expand Down

0 comments on commit acffc01

Please sign in to comment.