Skip to content
Snippets Groups Projects
Commit 80e37341 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

kdig: add TSIG verification for the first AXFR reply message

NOTE: Full verification will be added in the next release.

refs #2137

Change-Id: I092a8caf1640b5221815051e5cda1d1ec02e7098
parent c400956a
No related branches found
No related tags found
No related merge requests found
......@@ -559,6 +559,17 @@ static int process_xfr_packet(const knot_packet_t *query,
// The first message has a special treatment.
if (msg_count == 0) {
// Verify 1. signature if a key was specified.
if (key_params->name != NULL) {
ret = verify_packet(reply, sign_ctx, key_params);
if (ret != KNOT_EOK) {
ERR("%s\n", knot_strerror(ret));
knot_packet_free(&reply);
net_close(&net);
return -1;
}
}
// Read first SOA serial.
serial = first_serial_check(reply);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment