Changeset 679 in openpam for trunk/lib/liboath/oath_totp.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_totp.c

    r646 r679  
    8484                return (-1);
    8585        seq = time(NULL) / k->timestep;
    86         dummy = (memcmp(k->label, DUMMY_LABEL, DUMMY_LABELLEN) == 0);
     86        dummy = (strcmp(k->label, OATH_DUMMY_LABEL) == 0);
    8787        for (int i = -window; i <= window; ++i) {
    8888                code = oath_hotp(k->key, k->keylen, seq + i, k->digits);
Note: See TracChangeset for help on using the changeset viewer.