]> err.no Git - yubikey-personalization/commitdiff
Tab fixup
authorjoernchen of Phenoelit <joernchen@phenoelit.de>
Wed, 15 Jan 2014 23:22:00 +0000 (00:22 +0100)
committerjoernchen of Phenoelit <joernchen@phenoelit.de>
Wed, 15 Jan 2014 23:22:00 +0000 (00:22 +0100)
ykchalresp.c

index b669ea6de82b95c498808106d3ddc4cf98a418fe..b977a834ea1ab0ee93c3e097d7f201e6a5862b6a 100644 (file)
@@ -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;