content->clear();
while(d_getTSIGKeyQuery_stmt->hasNextRow()) {
d_getTSIGKeyQuery_stmt->nextRow(row);
- if(row.size() >= 2 && (algorithm->empty() || *algorithm == row[0])) {
- *algorithm = row[0];
+ if(row.size() >= 2 && (algorithm->empty() || *algorithm == DNSName(row[0]))) {
+ *algorithm = DNSName(row[0]);
*content = row[1];
}
}
while(d_getTSIGKeysQuery_stmt->hasNextRow()) {
d_getTSIGKeysQuery_stmt->nextRow(row);
struct TSIGKey key;
- key.name = row[0];
- key.algorithm = row[1];
+ key.name = DNSName(row[0]);
+ key.algorithm = DNSName(row[1]);
key.key = row[2];
keys.push_back(key);
}