Changeset 794 in openpam for trunk/lib


Ignore:
Timestamp:
Apr 11, 2014, 10:35:18 AM (7 years ago)
Author:
Dag-Erling Smørgrav
Message:

For TOTP keys, we record when the key was last used. For HOTP keys,
however, we want to record the *next* allowed counter value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/liboath/oath_hotp.c

    r726 r794  
    130130                code = oath_hotp(k->key, k->keylen, k->counter + i, k->digits);
    131131                if (code == response && !k->dummy) {
    132                         k->counter = k->counter + i;
     132                        k->counter = k->counter + i + 1;
    133133                        return (1);
    134134                }
Note: See TracChangeset for help on using the changeset viewer.