From 96283c5521605077f837feb57190ca93cdf3d388 Mon Sep 17 00:00:00 2001 From: joernchen of Phenoelit Date: Sat, 18 Jan 2014 20:21:07 +0100 Subject: [PATCH] Make -6 and -8 available for non time based HMACs --- ykchalresp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykchalresp.c b/ykchalresp.c index 3773df7..370291f 100644 --- a/ykchalresp.c +++ b/ykchalresp.c @@ -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 -- 2.39.5