Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Knot projects
Knot DNS
Commits
360211c2
Commit
360211c2
authored
Apr 12, 2017
by
Libor Peltan
Committed by
Daniel Salzman
May 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ksk_rollover adapatation to kasp_db redesign: DS query
parent
746b24ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
src/knot/ctl/commands.c
src/knot/ctl/commands.c
+1
-3
src/knot/events/handlers/parent_ds_query.c
src/knot/events/handlers/parent_ds_query.c
+2
-3
No files found.
src/knot/ctl/commands.c
View file @
360211c2
...
...
@@ -352,11 +352,9 @@ static int zone_ksk_submittion_confirm(zone_t *zone, ctl_args_t *args)
return
KNOT_EINVAL
;
}
conf_val_t
policy
=
conf_zone_get
(
conf
(),
C_DNSSEC_POLICY
,
zone
->
name
);
kdnssec_ctx_t
ctx
=
{
0
};
int
ret
=
kdnssec_ctx_init
(
&
ctx
,
zone
->
name
,
&
policy
);
int
ret
=
kdnssec_ctx_init
(
conf
(),
&
ctx
,
zone
->
name
);
if
(
ret
!=
KNOT_EOK
)
{
return
ret
;
}
...
...
src/knot/events/handlers/parent_ds_query.c
View file @
360211c2
...
...
@@ -181,11 +181,9 @@ static bool parents_have_ds(zone_t *zone, conf_t *conf, zone_key_t *key) {
int
event_parent_ds_q
(
conf_t
*
conf
,
zone_t
*
zone
)
{
conf_val_t
policy
=
conf_zone_get
(
conf
,
C_DNSSEC_POLICY
,
zone
->
name
);
kdnssec_ctx_t
ctx
=
{
0
};
int
ret
=
kdnssec_ctx_init
(
&
ctx
,
zone
->
name
,
&
policy
);
int
ret
=
kdnssec_ctx_init
(
conf
,
&
ctx
,
zone
->
name
);
if
(
ret
!=
KNOT_EOK
)
{
return
ret
;
}
...
...
@@ -208,6 +206,7 @@ int event_parent_ds_q(conf_t *conf, zone_t *zone)
}
}
conf_val_t
policy
=
conf_zone_get
(
conf
,
C_DNSSEC_POLICY
,
zone
->
name
);
if
(
ret
!=
KNOT_EOK
)
{
uint8_t
*
policy_name
=
(
uint8_t
*
)
conf_str
(
&
policy
);
size_t
policy_name_len
=
strlen
((
const
char
*
)
policy_name
)
+
1
;
...
...
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