From 48f7ef327dccbbe3f2da8d12063d83d759bb0bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 2 Oct 2022 15:59:46 +0200 Subject: [PATCH] Revert "Merge counter and lastused." This reverts commit 4d76b664d26d0a77b77c02de1ddb3252e695717a. --- include/cryb/oath_types.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/cryb/oath_types.h b/include/cryb/oath_types.h index d9ad829..b01cd90 100644 --- a/include/cryb/oath_types.h +++ b/include/cryb/oath_types.h @@ -47,11 +47,9 @@ typedef struct { oath_mode mode; oath_hash hash; unsigned int digits; - union { - uint64_t counter; /* HOTP */ - uint64_t lastused; /* TOTP */ - }; + uint64_t counter; /* HOTP only */ unsigned int timestep; /* TOTP only - in seconds */ + uint64_t lastused; /* TOTP only */ /* housekeeping */ unsigned int dummy:1; /* dummy key, always fail */