]> err.no Git - yubikey-personalization/commitdiff
Make -6 and -8 available for non time based HMACs
authorjoernchen of Phenoelit <joernchen@phenoelit.de>
Sat, 18 Jan 2014 19:21:07 +0000 (20:21 +0100)
committerjoernchen of Phenoelit <joernchen@phenoelit.de>
Sat, 18 Jan 2014 19:21:07 +0000 (20:21 +0100)
ykchalresp.c

index 3773df76774d2e906d20bc538a3c493f6d819770..370291f2b40b1b8925485e3cfa02407f55aa63bd 100644 (file)
@@ -250,7 +250,7 @@ static int challenge_response(YK_KEY *yk, int slot,
        /* HMAC responses are 160 bits, Yubico 128 */
        expect_bytes = (hmac == true) ? 20 : 16;
 
-       if(totp && digits){
+       if(digits){
                offset   =  response[19] & 0xf ;
                bin_code = (response[offset]  & 0x7f) << 24
                | (response[offset+1] & 0xff) << 16