]> err.no Git - yubikey-personalization/commitdiff
minor indentation fix
authorKlas Lindfors <klas@yubico.com>
Tue, 21 Jan 2014 11:46:13 +0000 (12:46 +0100)
committerKlas Lindfors <klas@yubico.com>
Tue, 21 Jan 2014 11:46:13 +0000 (12:46 +0100)
ykchalresp.c

index ff81840cd7b35856cfc970ec65ccf4abed892ad3..db0d5fabf12ff24cf0626d7125f61888a855b95f 100644 (file)
@@ -253,9 +253,9 @@ static int challenge_response(YK_KEY *yk, int slot,
        if(digits && hmac){
                offset   =  response[19] & 0xf ;
                bin_code = (response[offset]  & 0x7f) << 24
-               | (response[offset+1] & 0xff) << 16
-               | (response[offset+2] & 0xff) <<  8
-               | (response[offset+3] & 0xff) ;
+                       | (response[offset+1] & 0xff) << 16
+                       | (response[offset+2] & 0xff) <<  8
+                       | (response[offset+3] & 0xff) ;
                if(digits == 8){
                        bin_code = bin_code % 100000000;
                        printf("%08u\n", bin_code);
@@ -264,7 +264,7 @@ static int challenge_response(YK_KEY *yk, int slot,
                bin_code = bin_code % 1000000;
                printf("%06i\n", bin_code);
                return 1;
-        }
+       }
        if (hmac) {
                yubikey_hex_encode((char *)output_buf, (char *)response, expect_bytes);
        } else {