From: joernchen of Phenoelit Date: Wed, 15 Jan 2014 23:22:00 +0000 (+0100) Subject: Tab fixup X-Git-Tag: v1.15.1~42 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad94f9dead0605a0b1105f2f62ac67546e067995;p=yubikey-personalization Tab fixup --- 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;