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

    r678 r679  
    311311        key->timestep = 30;
    312312        key->hash = hash;
    313         memcpy(key->label, DUMMY_LABEL, DUMMY_LABELLEN);
    314         key->labellen = DUMMY_LABELLEN;
    315         key->keylen = DUMMY_KEYLEN;
     313        strcpy(key->label, "oath-dummy-key");
     314        key->labellen = strlen(key->label);
     315        key->keylen = sizeof key->key;
    316316        return (key);
    317317}
Note: See TracChangeset for help on using the changeset viewer.