From ad94f9dead0605a0b1105f2f62ac67546e067995 Mon Sep 17 00:00:00 2001 From: joernchen of Phenoelit Date: Thu, 16 Jan 2014 00:22:00 +0100 Subject: [PATCH] Tab fixup --- ykchalresp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ykchalresp.c b/ykchalresp.c index b669ea6..b977a83 100644 --- a/ykchalresp.c +++ b/ykchalresp.c @@ -243,11 +243,11 @@ static int challenge_response(YK_KEY *yk, int slot, expect_bytes = (hmac == true) ? 20 : 16; if(totp){ - offset = response[19] & 0xf ; - bin_code = (response[offset] & 0x7f) << 24 - | (response[offset+1] & 0xff) << 16 - | (response[offset+2] & 0xff) << 8 - | (response[offset+3] & 0xff) ; + offset = response[19] & 0xf ; + bin_code = (response[offset] & 0x7f) << 24 + | (response[offset+1] & 0xff) << 16 + | (response[offset+2] & 0xff) << 8 + | (response[offset+3] & 0xff) ; bin_code = bin_code % 1000000; printf("%06i\n", bin_code); return 1; -- 2.39.5