Changeset 774 in openpam for trunk/lib/liboath/oath_impl.h


Ignore:
Timestamp:
Mar 9, 2014, 11:51:08 AM (7 years ago)
Author:
Dag-Erling Smørgrav
Message:

The dummy constants have moved to oath_constants.h.
Add annotation macros for coverage analysis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/liboath/oath_impl.h

    r655 r774  
    3333#define OATH_IMPL_H_INCLUDED
    3434
     35#if _BullseyeCoverage
     36#define COVERAGE_DISABLE _Pragma("BullseyeCoverage save off")
     37#define COVERAGE_RESTORE _Pragma("BullseyeCoverage restore")
     38#else
     39#define COVERAGE_DISABLE
     40#define COVERAGE_RESTORE
     41#endif
     42
    3543/*
    36  * Dummy key parameters
     44 * Use at end of switch which has no default case
    3745 */
    38 #define OATH_DUMMY_LABEL        ("oath-dummy-key")
    39 #define OATH_DUMMY_LABELLEN     (sizeof DUMMY_LABEL)
    40 #define OATH_DUMMY_KEYLEN       80
     46#define COVERAGE_NO_DEFAULT_CASE \
     47        COVERAGE_DISABLE                                \
     48        default:                                        \
     49                (void)0;                                \
     50        COVERAGE_RESTORE
    4151
    4252#endif
Note: See TracChangeset for help on using the changeset viewer.