• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PowerDNS / pdns / 17299558505

28 Aug 2025 02:51PM UTC coverage: 65.507% (-0.4%) from 65.938%
17299558505

Pull #16058

github

web-flow
Merge 7d6bde821 into 29c909ee5
Pull Request #16058: rec/dnsdist: add (back) the line that sets the version in configure.ac

41852 of 92454 branches covered (45.27%)

Branch coverage included in aggregate %.

127266 of 165712 relevant lines covered (76.8%)

4340673.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.59
/modules/bindbackend/binddnssec.cc
1
/*
2
 * This file is part of PowerDNS or dnsdist.
3
 * Copyright -- PowerDNS.COM B.V. and its contributors
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of version 2 of the GNU General Public License as
7
 * published by the Free Software Foundation.
8
 *
9
 * In addition, for the avoidance of any doubt, permission is granted to
10
 * link this program with OpenSSL and to (re)distribute the binaries
11
 * produced as the result of such linking.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
 */
22

23
#ifdef HAVE_CONFIG_H
24
#include "config.h"
25
#endif
26
#include "bindbackend2.hh"
27
#include "pdns/arguments.hh"
28
#include "pdns/dnsrecords.hh"
29

30
#ifndef HAVE_SQLITE3
31

32
void Bind2Backend::setupDNSSEC()
33
{
34
  if (!getArg("dnssec-db").empty()) {
35
    throw runtime_error("bind-dnssec-db requires building PowerDNS with SQLite3");
36
  }
37
}
38

39
unsigned int Bind2Backend::getCapabilities()
40
{
41
  unsigned int caps = CAP_LIST | CAP_SEARCH;
42
  if (d_hybrid) {
43
    caps |= CAP_DNSSEC;
44
  }
45
  return caps;
46
}
47

48
bool Bind2Backend::getNSEC3PARAM(const ZoneName& /* name */, NSEC3PARAMRecordContent* /* ns3p */)
49
{
50
  return false;
51
}
52

53
bool Bind2Backend::getNSEC3PARAMuncached(const ZoneName& /* name */, NSEC3PARAMRecordContent* /* ns3p */)
54
{
55
  return false;
56
}
57

58
bool Bind2Backend::getAllDomainMetadata(const ZoneName& /* name */, std::map<std::string, std::vector<std::string>>& /* meta */)
59
{
60
  return false;
61
}
62

63
bool Bind2Backend::getDomainMetadata(const ZoneName& /* name */, const std::string& /* kind */, std::vector<std::string>& /* meta */)
64
{
65
  return false;
66
}
67

68
bool Bind2Backend::setDomainMetadata(const ZoneName& /* name */, const std::string& /* kind */, const std::vector<std::string>& /* meta */)
69
{
70
  return false;
71
}
72

73
bool Bind2Backend::getDomainKeys(const ZoneName& /* name */, std::vector<KeyData>& /* keys */)
74
{
75
  return false;
76
}
77

78
bool Bind2Backend::removeDomainKey(const ZoneName& /* name */, unsigned int /* id */)
79
{
80
  return false;
81
}
82

83
bool Bind2Backend::addDomainKey(const ZoneName& /* name */, const KeyData& /* key */, int64_t& /* id */)
84
{
85
  return false;
86
}
87

88
bool Bind2Backend::activateDomainKey(const ZoneName& /* name */, unsigned int /* id */)
89
{
90
  return false;
91
}
92

93
bool Bind2Backend::deactivateDomainKey(const ZoneName& /* name */, unsigned int /* id */)
94
{
95
  return false;
96
}
97

98
bool Bind2Backend::publishDomainKey(const ZoneName& /* name */, unsigned int /* id */)
99
{
100
  return false;
101
}
102

103
bool Bind2Backend::unpublishDomainKey(const ZoneName& /* name */, unsigned int /* id */)
104
{
105
  return false;
106
}
107

108
bool Bind2Backend::getTSIGKey(const DNSName& /* name */, DNSName& /* algorithm */, string& /* content */)
109
{
110
  return false;
111
}
112

113
bool Bind2Backend::setTSIGKey(const DNSName& /* name */, const DNSName& /* algorithm */, const string& /* content */)
114
{
115
  return false;
116
}
117

118
bool Bind2Backend::deleteTSIGKey(const DNSName& /* name */)
119
{
120
  return false;
121
}
122

123
bool Bind2Backend::getTSIGKeys(std::vector<struct TSIGKey>& /* keys */)
124
{
125
  return false;
126
}
127

128
void Bind2Backend::setupStatements()
129
{
130
}
131

132
void Bind2Backend::freeStatements()
133
{
134
}
135

136
#else
137

138
#include "pdns/logger.hh"
139
#include "pdns/ssqlite3.hh"
140

141
#define ASSERT_ROW_COLUMNS(query, row, num)                                                                                                \
142
  {                                                                                                                                        \
2✔
143
    if (row.size() != num) {                                                                                                               \
2✔
144
      throw PDNSException(std::string(query) + " returned wrong number of columns, expected " #num ", got " + std::to_string(row.size())); \
×
145
    }                                                                                                                                      \
×
146
  }
2✔
147

148
void Bind2Backend::setupDNSSEC()
149
{
1,916✔
150
  if (getArg("dnssec-db").empty() || d_hybrid)
1,916!
151
    return;
1,887✔
152
  try {
29✔
153
    d_dnssecdb = std::make_shared<SSQLite3>(getArg("dnssec-db"), getArg("dnssec-db-journal-mode"));
29✔
154
    setupStatements();
29✔
155
  }
29✔
156
  catch (SSqlException& se) {
29✔
157
    // this error is meant to kill the server dead - it makes no sense to continue..
158
    throw runtime_error("Error opening DNSSEC database in BIND backend: " + se.txtReason());
×
159
  }
×
160

161
  d_dnssecdb->setLog(::arg().mustDo("query-logging"));
29✔
162
}
29✔
163

164
void Bind2Backend::setupStatements()
165
{
29✔
166
  d_getAllDomainMetadataQuery_stmt = d_dnssecdb->prepare("select kind, content from domainmetadata where domain=:domain", 1);
29✔
167
  d_getDomainMetadataQuery_stmt = d_dnssecdb->prepare("select content from domainmetadata where domain=:domain and kind=:kind", 2);
29✔
168
  d_deleteDomainMetadataQuery_stmt = d_dnssecdb->prepare("delete from domainmetadata where domain=:domain and kind=:kind", 2);
29✔
169
  d_insertDomainMetadataQuery_stmt = d_dnssecdb->prepare("insert into domainmetadata (domain, kind, content) values (:domain,:kind,:content)", 3);
29✔
170
  d_getDomainKeysQuery_stmt = d_dnssecdb->prepare("select id,flags, active, published, content from cryptokeys where domain=:domain", 1);
29✔
171
  d_deleteDomainKeyQuery_stmt = d_dnssecdb->prepare("delete from cryptokeys where domain=:domain and id=:key_id", 2);
29✔
172
  d_insertDomainKeyQuery_stmt = d_dnssecdb->prepare("insert into cryptokeys (domain, flags, active, published, content) values (:domain, :flags, :active, :published, :content)", 5);
29✔
173
  d_GetLastInsertedKeyIdQuery_stmt = d_dnssecdb->prepare("select last_insert_rowid()", 0);
29✔
174
  d_activateDomainKeyQuery_stmt = d_dnssecdb->prepare("update cryptokeys set active=1 where domain=:domain and id=:key_id", 2);
29✔
175
  d_deactivateDomainKeyQuery_stmt = d_dnssecdb->prepare("update cryptokeys set active=0 where domain=:domain and id=:key_id", 2);
29✔
176
  d_publishDomainKeyQuery_stmt = d_dnssecdb->prepare("update cryptokeys set published=1 where domain=:domain and id=:key_id", 2);
29✔
177
  d_unpublishDomainKeyQuery_stmt = d_dnssecdb->prepare("update cryptokeys set published=0 where domain=:domain and id=:key_id", 2);
29✔
178
  d_getTSIGKeyQuery_stmt = d_dnssecdb->prepare("select algorithm, secret from tsigkeys where name=:key_name", 1);
29✔
179
  d_setTSIGKeyQuery_stmt = d_dnssecdb->prepare("replace into tsigkeys (name,algorithm,secret) values(:key_name, :algorithm, :content)", 3);
29✔
180
  d_deleteTSIGKeyQuery_stmt = d_dnssecdb->prepare("delete from tsigkeys where name=:key_name", 1);
29✔
181
  d_getTSIGKeysQuery_stmt = d_dnssecdb->prepare("select name,algorithm,secret from tsigkeys", 0);
29✔
182
}
29✔
183

184
void Bind2Backend::freeStatements()
185
{
1,880✔
186
  d_getAllDomainMetadataQuery_stmt.reset();
1,880✔
187
  d_getDomainMetadataQuery_stmt.reset();
1,880✔
188
  d_deleteDomainMetadataQuery_stmt.reset();
1,880✔
189
  d_insertDomainMetadataQuery_stmt.reset();
1,880✔
190
  d_getDomainKeysQuery_stmt.reset();
1,880✔
191
  d_deleteDomainKeyQuery_stmt.reset();
1,880✔
192
  d_insertDomainKeyQuery_stmt.reset();
1,880✔
193
  d_GetLastInsertedKeyIdQuery_stmt.reset();
1,880✔
194
  d_activateDomainKeyQuery_stmt.reset();
1,880✔
195
  d_deactivateDomainKeyQuery_stmt.reset();
1,880✔
196
  d_publishDomainKeyQuery_stmt.reset();
1,880✔
197
  d_unpublishDomainKeyQuery_stmt.reset();
1,880✔
198
  d_getTSIGKeyQuery_stmt.reset();
1,880✔
199
  d_setTSIGKeyQuery_stmt.reset();
1,880✔
200
  d_deleteTSIGKeyQuery_stmt.reset();
1,880✔
201
  d_getTSIGKeysQuery_stmt.reset();
1,880✔
202
}
1,880✔
203

204
unsigned int Bind2Backend::getCapabilities()
205
{
20✔
206
  unsigned int caps = CAP_LIST | CAP_SEARCH;
20✔
207
  if (d_dnssecdb || d_hybrid) {
20!
208
    caps |= CAP_DNSSEC;
1✔
209
  }
1✔
210
  return caps;
20✔
211
}
20✔
212

213
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
214
bool Bind2Backend::getNSEC3PARAM(const ZoneName& name, NSEC3PARAMRecordContent* ns3p)
215
{
×
216
  BB2DomainInfo bbd;
×
217
  if (!safeGetBBDomainInfo(name, &bbd))
×
218
    return false;
×
219

220
  if (ns3p != nullptr) {
×
221
    *ns3p = bbd.d_nsec3param;
×
222
  }
×
223

224
  return bbd.d_nsec3zone;
×
225
}
×
226

227
bool Bind2Backend::getNSEC3PARAMuncached(const ZoneName& name, NSEC3PARAMRecordContent* ns3p)
228
{
7✔
229
  if (!d_dnssecdb || d_hybrid)
7!
230
    return false;
4✔
231

232
  string value;
3✔
233
  vector<string> meta;
3✔
234
  getDomainMetadata(name, "NSEC3PARAM", meta);
3✔
235
  if (!meta.empty())
3!
236
    value = *meta.begin();
×
237
  else
3✔
238
    return false; // No NSEC3 zone
3✔
239

240
  static int maxNSEC3Iterations = ::arg().asNum("max-nsec3-iterations");
×
241
  if (ns3p) {
×
242
    auto tmp = std::dynamic_pointer_cast<NSEC3PARAMRecordContent>(DNSRecordContent::make(QType::NSEC3PARAM, 1, value));
×
243
    *ns3p = *tmp;
×
244

245
    if (ns3p->d_iterations > maxNSEC3Iterations) {
×
246
      ns3p->d_iterations = maxNSEC3Iterations;
×
247
      g_log << Logger::Error << "Number of NSEC3 iterations for zone '" << name << "' is above 'max-nsec3-iterations'. Value adjusted to: " << maxNSEC3Iterations << endl;
×
248
    }
×
249

250
    if (ns3p->d_algorithm != 1) {
×
251
      g_log << Logger::Error << "Invalid hash algorithm for NSEC3: '" << std::to_string(ns3p->d_algorithm) << "', setting to 1 for zone '" << name << "'." << endl;
×
252
      ns3p->d_algorithm = 1;
×
253
    }
×
254
  }
×
255

256
  return true;
×
257
}
3✔
258

259
bool Bind2Backend::getAllDomainMetadata(const ZoneName& name, std::map<std::string, std::vector<std::string>>& meta)
260
{
81✔
261
  if (!d_dnssecdb || d_hybrid)
81!
262
    return false;
4✔
263

264
  try {
77✔
265
    d_getAllDomainMetadataQuery_stmt->bind("domain", name)->execute();
77✔
266

267
    SSqlStatement::row_t row;
77✔
268
    while (d_getAllDomainMetadataQuery_stmt->hasNextRow()) {
122✔
269
      d_getAllDomainMetadataQuery_stmt->nextRow(row);
45✔
270
      meta[row[0]].push_back(row[1]);
45✔
271
    }
45✔
272

273
    d_getAllDomainMetadataQuery_stmt->reset();
77✔
274
  }
77✔
275
  catch (SSqlException& se) {
77✔
276
    throw PDNSException("Error accessing DNSSEC database in BIND backend, getAllDomainMetadata(): " + se.txtReason());
×
277
  }
×
278
  return true;
77✔
279
}
77✔
280

281
bool Bind2Backend::getDomainMetadata(const ZoneName& name, const std::string& kind, std::vector<std::string>& meta)
282
{
7✔
283
  if (!d_dnssecdb || d_hybrid)
7!
284
    return false;
4✔
285

286
  try {
3✔
287
    d_getDomainMetadataQuery_stmt->bind("domain", name)->bind("kind", kind)->execute();
3✔
288

289
    SSqlStatement::row_t row;
3✔
290
    while (d_getDomainMetadataQuery_stmt->hasNextRow()) {
3!
291
      d_getDomainMetadataQuery_stmt->nextRow(row);
×
292
      meta.push_back(row[0]);
×
293
    }
×
294

295
    d_getDomainMetadataQuery_stmt->reset();
3✔
296
  }
3✔
297
  catch (SSqlException& se) {
3✔
298
    throw PDNSException("Error accessing DNSSEC database in BIND backend, getDomainMetadata(): " + se.txtReason());
×
299
  }
×
300
  return true;
3✔
301
}
3✔
302

303
bool Bind2Backend::setDomainMetadata(const ZoneName& name, const std::string& kind, const std::vector<std::string>& meta)
304
{
5✔
305
  if (!d_dnssecdb || d_hybrid)
5!
306
    return false;
×
307

308
  try {
5✔
309
    d_deleteDomainMetadataQuery_stmt->bind("domain", name)->bind("kind", kind)->execute()->reset();
5✔
310
    if (!meta.empty()) {
5✔
311
      for (const auto& value : meta) {
4✔
312
        d_insertDomainMetadataQuery_stmt->bind("domain", name)->bind("kind", kind)->bind("content", value)->execute()->reset();
4✔
313
      }
4✔
314
    }
4✔
315
  }
5✔
316
  catch (SSqlException& se) {
5✔
317
    throw PDNSException("Error accessing DNSSEC database in BIND backend, setDomainMetadata(): " + se.txtReason());
×
318
  }
×
319
  return true;
5✔
320
}
5✔
321

322
bool Bind2Backend::getDomainKeys(const ZoneName& name, std::vector<KeyData>& keys)
323
{
7✔
324
  if (!d_dnssecdb || d_hybrid)
7!
325
    return false;
×
326

327
  try {
7✔
328
    d_getDomainKeysQuery_stmt->bind("domain", name)->execute();
7✔
329

330
    KeyData kd;
7✔
331
    SSqlStatement::row_t row;
7✔
332
    while (d_getDomainKeysQuery_stmt->hasNextRow()) {
20✔
333
      d_getDomainKeysQuery_stmt->nextRow(row);
13✔
334
      pdns::checked_stoi_into(kd.id, row[0]);
13✔
335
      pdns::checked_stoi_into(kd.flags, row[1]);
13✔
336
      kd.active = (row[2] == "1");
13✔
337
      kd.published = (row[3] == "1");
13✔
338
      kd.content = row[4];
13✔
339
      keys.push_back(kd);
13✔
340
    }
13✔
341

342
    d_getDomainKeysQuery_stmt->reset();
7✔
343
  }
7✔
344
  catch (SSqlException& se) {
7✔
345
    throw PDNSException("Error accessing DNSSEC database in BIND backend, getDomainKeys(): " + se.txtReason());
×
346
  }
×
347
  return true;
7✔
348
}
7✔
349

350
bool Bind2Backend::removeDomainKey(const ZoneName& name, unsigned int keyId)
351
{
×
352
  if (!d_dnssecdb || d_hybrid)
×
353
    return false;
×
354

355
  try {
×
356
    d_deleteDomainKeyQuery_stmt->bind("domain", name)->bind("key_id", keyId)->execute()->reset();
×
357
  }
×
358
  catch (SSqlException& se) {
×
359
    throw PDNSException("Error accessing DNSSEC database in BIND backend, removeDomainKeys(): " + se.txtReason());
×
360
  }
×
361
  return true;
×
362
}
×
363

364
bool Bind2Backend::addDomainKey(const ZoneName& name, const KeyData& key, int64_t& keyId)
365
{
2✔
366
  if (!d_dnssecdb || d_hybrid)
2!
367
    return false;
×
368

369
  try {
2✔
370
    d_insertDomainKeyQuery_stmt->bind("domain", name)->bind("flags", key.flags)->bind("active", key.active)->bind("published", key.published)->bind("content", key.content)->execute()->reset();
2✔
371
  }
2✔
372
  catch (SSqlException& se) {
2✔
373
    throw PDNSException("Error accessing DNSSEC database in BIND backend, addDomainKey(): " + se.txtReason());
×
374
  }
×
375

376
  try {
2✔
377
    d_GetLastInsertedKeyIdQuery_stmt->execute();
2✔
378
    if (!d_GetLastInsertedKeyIdQuery_stmt->hasNextRow()) {
2!
379
      keyId = -2;
×
380
      return true;
×
381
    }
×
382
    SSqlStatement::row_t row;
2✔
383
    d_GetLastInsertedKeyIdQuery_stmt->nextRow(row);
2✔
384
    ASSERT_ROW_COLUMNS("get-last-inserted-key-id-query", row, 1);
2!
385
    keyId = std::stoi(row[0]);
2✔
386
    d_GetLastInsertedKeyIdQuery_stmt->reset();
2✔
387
    if (keyId == 0) {
2!
388
      // No insert took place, report as error.
389
      keyId = -1;
×
390
    }
×
391
    return true;
2✔
392
  }
2✔
393
  catch (SSqlException& e) {
2✔
394
    keyId = -2;
×
395
    return true;
×
396
  }
×
397
}
2✔
398

399
bool Bind2Backend::activateDomainKey(const ZoneName& name, unsigned int keyId)
400
{
×
401
  if (!d_dnssecdb || d_hybrid)
×
402
    return false;
×
403

404
  try {
×
405
    d_activateDomainKeyQuery_stmt->bind("domain", name)->bind("key_id", keyId)->execute()->reset();
×
406
  }
×
407
  catch (SSqlException& se) {
×
408
    throw PDNSException("Error accessing DNSSEC database in BIND backend, activateDomainKey(): " + se.txtReason());
×
409
  }
×
410
  return true;
×
411
}
×
412

413
bool Bind2Backend::deactivateDomainKey(const ZoneName& name, unsigned int keyId)
414
{
×
415
  if (!d_dnssecdb || d_hybrid)
×
416
    return false;
×
417

418
  try {
×
419
    d_deactivateDomainKeyQuery_stmt->bind("domain", name)->bind("key_id", keyId)->execute()->reset();
×
420
  }
×
421
  catch (SSqlException& se) {
×
422
    throw PDNSException("Error accessing DNSSEC database in BIND backend, deactivateDomainKey(): " + se.txtReason());
×
423
  }
×
424
  return true;
×
425
}
×
426

427
bool Bind2Backend::publishDomainKey(const ZoneName& name, unsigned int keyId)
428
{
×
429
  if (!d_dnssecdb || d_hybrid)
×
430
    return false;
×
431

432
  try {
×
433
    d_publishDomainKeyQuery_stmt->bind("domain", name)->bind("key_id", keyId)->execute()->reset();
×
434
  }
×
435
  catch (SSqlException& se) {
×
436
    throw PDNSException("Error accessing DNSSEC database in BIND backend, publishDomainKey(): " + se.txtReason());
×
437
  }
×
438
  return true;
×
439
}
×
440

441
bool Bind2Backend::unpublishDomainKey(const ZoneName& name, unsigned int keyId)
442
{
×
443
  if (!d_dnssecdb || d_hybrid)
×
444
    return false;
×
445

446
  try {
×
447
    d_unpublishDomainKeyQuery_stmt->bind("domain", name)->bind("key_id", keyId)->execute()->reset();
×
448
  }
×
449
  catch (SSqlException& se) {
×
450
    throw PDNSException("Error accessing DNSSEC database in BIND backend, unpublishDomainKey(): " + se.txtReason());
×
451
  }
×
452
  return true;
×
453
}
×
454

455
bool Bind2Backend::getTSIGKey(const DNSName& name, DNSName& algorithm, string& content)
456
{
×
457
  if (!d_dnssecdb || d_hybrid)
×
458
    return false;
×
459

460
  try {
×
461
    d_getTSIGKeyQuery_stmt->bind("key_name", name)->execute();
×
462

463
    SSqlStatement::row_t row;
×
464
    while (d_getTSIGKeyQuery_stmt->hasNextRow()) {
×
465
      d_getTSIGKeyQuery_stmt->nextRow(row);
×
466
      if (row.size() >= 2 && (algorithm.empty() || algorithm == DNSName(row[0]))) {
×
467
        algorithm = DNSName(row[0]);
×
468
        content = row[1];
×
469
      }
×
470
    }
×
471

472
    d_getTSIGKeyQuery_stmt->reset();
×
473
  }
×
474
  catch (SSqlException& e) {
×
475
    throw PDNSException("Error accessing DNSSEC database in BIND backend, getTSIGKey(): " + e.txtReason());
×
476
  }
×
477
  return true;
×
478
}
×
479

480
bool Bind2Backend::setTSIGKey(const DNSName& name, const DNSName& algorithm, const string& content)
481
{
×
482
  if (!d_dnssecdb || d_hybrid)
×
483
    return false;
×
484

485
  try {
×
486
    d_setTSIGKeyQuery_stmt->bind("key_name", name)->bind("algorithm", algorithm)->bind("content", content)->execute()->reset();
×
487
  }
×
488
  catch (SSqlException& e) {
×
489
    throw PDNSException("Error accessing DNSSEC database in BIND backend, setTSIGKey(): " + e.txtReason());
×
490
  }
×
491
  return true;
×
492
}
×
493

494
bool Bind2Backend::deleteTSIGKey(const DNSName& name)
495
{
×
496
  if (!d_dnssecdb || d_hybrid)
×
497
    return false;
×
498

499
  try {
×
500
    d_deleteTSIGKeyQuery_stmt->bind("key_name", name)->execute()->reset();
×
501
  }
×
502
  catch (SSqlException& e) {
×
503
    throw PDNSException("Error accessing DNSSEC database in BIND backend, deleteTSIGKey(): " + e.txtReason());
×
504
  }
×
505
  return true;
×
506
}
×
507

508
bool Bind2Backend::getTSIGKeys(std::vector<struct TSIGKey>& keys)
509
{
×
510
  if (!d_dnssecdb || d_hybrid)
×
511
    return false;
×
512

513
  try {
×
514
    d_getTSIGKeysQuery_stmt->execute();
×
515

516
    SSqlStatement::row_t row;
×
517
    while (d_getTSIGKeysQuery_stmt->hasNextRow()) {
×
518
      d_getTSIGKeysQuery_stmt->nextRow(row);
×
519
      struct TSIGKey key;
×
520
      key.name = DNSName(row[0]);
×
521
      key.algorithm = DNSName(row[1]);
×
522
      key.key = row[2];
×
523
      keys.push_back(key);
×
524
    }
×
525

526
    d_getTSIGKeysQuery_stmt->reset();
×
527
  }
×
528
  catch (SSqlException& e) {
×
529
    throw PDNSException("Error accessing DNSSEC database in BIND backend, getTSIGKeys(): " + e.txtReason());
×
530
  }
×
531
  return true;
×
532
}
×
533

534
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc