Changeset 679 in openpam for trunk/lib/liboath/oath_hotp.c


Ignore:
Timestamp:
Mar 18, 2013, 9:38:58 PM (8 years ago)
Author:
Dag-Erling Smørgrav
Message:

Clean up and simplify dummy key handling.

File:
1 edited

Legend:

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

    r646 r679  
    128128        if (k->counter >= UINT64_MAX - window)
    129129                return (-1);
    130         dummy = (memcmp(k->label, DUMMY_LABEL, DUMMY_LABELLEN) == 0);
     130        dummy = (strcmp(k->label, OATH_DUMMY_LABEL) == 0);
    131131        for (int i = 0; i < window; ++i) {
    132132                code = oath_hotp(k->key, k->keylen, k->counter + i, k->digits);
Note: See TracChangeset for help on using the changeset viewer.