]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use a C++ array for the well-known DS record(s)
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 19 Jan 2024 09:37:26 +0000 (10:37 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 25 Apr 2024 09:31:40 +0000 (11:31 +0200)
pdns/root-dnssec.hh

index 3ee5e9bbb769916cb2a3f3c4d7716a5e04ea483e..1a193ffae08c438d68ae59cf0a048517a626f276 100644 (file)
@@ -22,4 +22,9 @@
 
 #pragma once
 
-static const char* const rootDSs[]={"20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d"};
+#include <array>
+#include <string>
+
+static const std::array<std::string, 1> rootDSs = {
+  "20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d"
+};