Changeset 679 in openpam for trunk/lib/liboath/oath_totp.c
- Timestamp:
- Mar 18, 2013, 9:38:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/liboath/oath_totp.c
r646 r679 84 84 return (-1); 85 85 seq = time(NULL) / k->timestep; 86 dummy = ( memcmp(k->label, DUMMY_LABEL, DUMMY_LABELLEN) == 0);86 dummy = (strcmp(k->label, OATH_DUMMY_LABEL) == 0); 87 87 for (int i = -window; i <= window; ++i) { 88 88 code = oath_hotp(k->key, k->keylen, seq + i, k->digits);
Note: See TracChangeset
for help on using the changeset viewer.