Commit 0d829ebc authored by Giovanni Bajo's avatar Giovanni Bajo Committed by Simon Kelley

Skip non-signing keys

parent 4137b84e
...@@ -299,6 +299,9 @@ int dnssec_parsekey(struct dns_header *header, size_t pktlen, char *owner, unsig ...@@ -299,6 +299,9 @@ int dnssec_parsekey(struct dns_header *header, size_t pktlen, char *owner, unsig
if (proto != 3) if (proto != 3)
return 0; return 0;
/* Skip non-signing keys (as specified in RFC4034 */
if (!(flags & 0x100))
return 0;
switch (alg) switch (alg)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment