Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
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
Knot projects
Knot DNS
Commits
382273c4
Commit
382273c4
authored
Mar 24, 2019
by
Daniel Salzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ctl: fix zone commit with signing enabled on initial zone contents
relates
#641
parent
3127127c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/knot/ctl/commands.c
src/knot/ctl/commands.c
+6
-1
No files found.
src/knot/ctl/commands.c
View file @
382273c4
...
...
@@ -469,7 +469,12 @@ static int zone_txn_commit(zone_t *zone, ctl_args_t *args)
bool
dnssec_enable
=
(
zone
->
control_update
->
flags
&
UPDATE_SIGN
)
&&
conf_bool
(
&
val
);
if
(
dnssec_enable
)
{
zone_sign_reschedule_t
resch
=
{
0
};
int
ret
=
knot_dnssec_sign_update
(
zone
->
control_update
,
&
resch
);
bool
full
=
(
zone
->
control_update
->
flags
&
UPDATE_FULL
);
zone_sign_roll_flags_t
rflags
=
KEY_ROLL_ALLOW_KSK_ROLL
|
KEY_ROLL_ALLOW_ZSK_ROLL
|
KEY_ROLL_DO_NSEC3RESALT
;
int
ret
=
(
full
?
knot_dnssec_zone_sign
(
zone
->
control_update
,
0
,
rflags
,
&
resch
)
:
knot_dnssec_sign_update
(
zone
->
control_update
,
&
resch
));
if
(
ret
!=
KNOT_EOK
)
{
zone_txn_update_clear
(
zone
);
return
ret
;
...
...
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