Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
20bccd49
Commit
20bccd49
authored
Apr 25, 2012
by
Giovanni Bajo
Committed by
Simon Kelley
Aug 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework the loop a little (no functionality changes)
parent
708bcd2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/dnssec.c
src/dnssec.c
+11
-11
No files found.
src/dnssec.c
View file @
20bccd49
...
@@ -243,24 +243,24 @@ static void dnssec_parserrsig(struct dns_header *header, size_t pktlen,
...
@@ -243,24 +243,24 @@ static void dnssec_parserrsig(struct dns_header *header, size_t pktlen,
return
;
return
;
printf
(
"RRSIG: querying cache for DNSKEY %s (keytag: %d)
\n
"
,
val
.
signer_name
,
val
.
keytag
);
printf
(
"RRSIG: querying cache for DNSKEY %s (keytag: %d)
\n
"
,
val
.
signer_name
,
val
.
keytag
);
/* Look in the cache for all the DNSKEYs with matching signer_name and keytag */
/* Look in the cache for *all* the DNSKEYs with matching signer_name and keytag */
char
onekey
=
0
;
char
onekey
=
0
;
struct
crec
*
crecp
=
NULL
;
struct
crec
*
crecp
=
NULL
;
while
(
crecp
=
cache_find_by_name
(
crecp
,
val
.
signer_name
,
time
(
0
),
F_DNSKEY
))
/* TODO: time(0) */
while
(
crecp
=
cache_find_by_name
(
crecp
,
val
.
signer_name
,
time
(
0
),
F_DNSKEY
))
/* TODO: time(0) */
{
{
onekey
=
1
;
onekey
=
1
;
if
(
crecp
->
addr
.
key
.
keytag
!=
val
.
keytag
)
if
(
crecp
->
addr
.
key
.
keytag
==
val
.
keytag
continue
;
&&
crecp
->
addr
.
key
.
algo
==
verifyalg_algonum
(
val
.
alg
))
if
(
crecp
->
addr
.
key
.
algo
!=
verifyalg_algonum
(
val
.
alg
))
{
continue
;
printf
(
"RRSIG: found DNSKEY %d in cache, attempting validation
\n
"
,
val
.
keytag
);
printf
(
"RRSIG: found DNSKEY %d in cache, attempting validation
\n
"
,
val
.
keytag
);
if
(
end_rrsig_validation
(
&
val
,
crecp
))
if
(
end_rrsig_validation
(
&
val
,
crecp
))
printf
(
"Validation OK
\n
"
);
printf
(
"Validation OK
\n
"
);
else
else
printf
(
"Validation FAILED
\n
"
);
printf
(
"Validation FAILED
\n
"
);
}
}
}
if
(
!
onekey
)
if
(
!
onekey
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment