Files
bind9/lib/dns
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
..
2020-04-15 13:37:12 +02:00
2020-02-13 15:05:06 -08:00
2020-04-15 12:47:42 +02:00
2020-04-16 23:03:54 +02:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-02-26 07:57:44 +00:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-04-20 09:21:40 +02:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00
2020-03-16 09:38:15 +01:00
2020-02-14 09:31:05 +01:00
2020-02-16 17:34:24 +01:00
2020-02-16 17:34:24 +01:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-03-13 12:42:52 +11:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-21 15:05:08 +11:00
2020-02-14 09:31:05 +01:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-04-03 09:27:15 +02:00
2020-02-14 09:31:05 +01:00
2020-02-13 15:05:06 -08:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00
2020-04-03 09:27:15 +02:00
2020-02-14 09:31:05 +01:00
2020-04-16 14:22:47 +02:00
2020-02-13 15:05:06 -08:00
2020-02-14 09:31:05 +01:00