bind9/lib
Ondřej Surý cf30e7d0d1 Use switch instead of if when evaluating curves
Previously, the code would do:

    REQUIRE(alg == CURVE1 || alg == CURVE2);

    [...]

    if (alg == CURVE1) { /* code for CURVE1 */ }
    else { /* code for CURVE2 */ }

This approach is less extensible and also more prone to errors in case
the initial REQUIRE() is forgotten.  The code has been refactored to
use:

    REQUIRE(alg == CURVE1 || alg == CURVE2);

    [...]

    switch (alg) {
    case CURVE1: /* code for CURVE1 */; break;
    case CURVE2: /* code for CURVE2 */; break;
    default: INSIST(0);
    }
2020-04-20 11:40:42 +02:00
..
bind9 dnssec-policy: to sign inline or not 2020-04-16 14:22:47 +02:00
dns Use switch instead of if when evaluating curves 2020-04-20 11:40:42 +02:00
irs Align the irs_getnameinfo() declaration and definition on Windows 2020-04-15 14:03:40 +02:00
isc Refactor the code using the pk11 ECC constants. 2020-04-20 11:40:42 +02:00
isccc prep 9.17.1 2020-04-16 23:03:54 +02:00
isccfg prep 9.17.1 2020-04-16 23:03:54 +02:00
ns prep 9.17.1 2020-04-16 23:03:54 +02:00
samples Disable MSB8028 warning 2020-04-15 13:37:12 +02:00
win32/bindevt Disable MSB8028 warning 2020-04-15 13:37:12 +02:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Kyuafile link in lib/isccc/tests/Kyuafile 2018-11-13 07:23:36 +11:00
Makefile.in remove lib/tests as nothing uses it anymore 2018-03-09 14:12:50 -08:00