Revert "Merge counter and lastused."

This reverts commit 4d76b664d2.
This commit is contained in:
Dag-Erling Smørgrav 2022-10-02 15:59:46 +02:00
parent 62dfa73532
commit 48f7ef327d
1 changed files with 2 additions and 4 deletions

View File

@ -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 */