]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Deprecate AES algorithm for DNS cookies
authorOndřej Surý <ondrej@isc.org>
Tue, 7 Nov 2023 14:17:10 +0000 (15:17 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 13 Nov 2023 13:59:43 +0000 (14:59 +0100)
The AES algorithm for DNS cookies was being kept for legacy reasons,
and it can be safely removed in the next major release.  Mark is as
deprecated, so the `named-checkconf` prints a warning when in use.

lib/isccfg/check.c

index 148d5c6c4abfb3b4275fcfb6987ebc46e81f2221..307bf9b65228e764a30f64ba7b5510eff3bce2de 100644 (file)
@@ -1561,6 +1561,10 @@ check_options(const cfg_obj_t *options, const cfg_obj_t *config,
        (void)cfg_map_get(options, "cookie-algorithm", &obj);
        if (obj != NULL) {
                ccalg = cfg_obj_asstring(obj);
+               if (strcasecmp(ccalg, "aes") == 0) {
+                       cfg_obj_log(obj, logctx, ISC_LOG_WARNING,
+                                   "cookie-algorithm 'aes' is deprecated");
+               }
        }
 
        obj = NULL;