From: Otto Moerbeek Date: Fri, 19 Jan 2024 09:37:26 +0000 (+0100) Subject: Use a C++ array for the well-known DS record(s) X-Git-Tag: rec-5.1.0-alpha1~9^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d401762d3ec565f6bac7c02e4e5a090e946a3c0;p=thirdparty%2Fpdns.git Use a C++ array for the well-known DS record(s) --- diff --git a/pdns/root-dnssec.hh b/pdns/root-dnssec.hh index 3ee5e9bbb7..1a193ffae0 100644 --- a/pdns/root-dnssec.hh +++ b/pdns/root-dnssec.hh @@ -22,4 +22,9 @@ #pragma once -static const char* const rootDSs[]={"20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d"}; +#include +#include + +static const std::array rootDSs = { + "20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d" +};