Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
beea173d
Commit
beea173d
authored
Aug 16, 2000
by
David Lawrence
Browse files
Rewrote the INSIST in dns_tsigkey_create() so that dstalg was guaranteed to
be set, even when INSISTS() are turned off.
parent
997e3113
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/tsig.c
View file @
beea173d
...
...
@@ -16,7 +16,7 @@
*/
/*
* $Id: tsig.c,v 1.8
4
2000/08/1
4 21:59:59 bwelling
Exp $
* $Id: tsig.c,v 1.8
5
2000/08/1
6 00:18:30 tale
Exp $
* Principal Author: Brian Wellington
*/
...
...
@@ -144,10 +144,14 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
if
(
length
>
0
)
{
int
dstalg
;
if
(
tkey
->
algorithm
==
dns_tsig_hmacmd5_name
)
dstalg
=
DST_ALG_HMACMD5
;
else
INSIST
(
0
);
/*
* Any algorithm other than HMACMD5 should have received an
* ISC_R_NOTIMPLEMENTED result above.
*/
INSIST
(
tkey
->
algorithm
==
dns_tsig_hmacmd5_name
);
dstalg
=
DST_ALG_HMACMD5
;
isc_buffer_init
(
&
b
,
secret
,
length
);
isc_buffer_add
(
&
b
,
length
);
ret
=
dst_key_frombuffer
(
name
,
dstalg
,
...
...
Write
Preview
Supports
Markdown
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