diff options
author | JINMEI Tatuya <jinmei@isc.org> | 2011-04-26 20:36:53 +0200 |
---|---|---|
committer | JINMEI Tatuya <jinmei@isc.org> | 2011-04-26 20:36:53 +0200 |
commit | adfd1014c34da20e272f058c9cce43130c637071 (patch) | |
tree | 67eaf02a886c2dd98eca48d0ccbd0905e95dd224 /src/lib/dns/tsigkey.cc | |
parent | [trac812] fixups to make cryptolink buildable with recent lib/util stuff (diff) | |
download | kea-adfd1014c34da20e272f058c9cce43130c637071.tar.xz kea-adfd1014c34da20e272f058c9cce43130c637071.zip |
[trac812] a prerequisite fixes to tsigkey: make sure key name is also
in the canonical form (i.e. downcased).
Diffstat (limited to 'src/lib/dns/tsigkey.cc')
-rw-r--r-- | src/lib/dns/tsigkey.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/dns/tsigkey.cc b/src/lib/dns/tsigkey.cc index a3eb76b034..ef957dfd2a 100644 --- a/src/lib/dns/tsigkey.cc +++ b/src/lib/dns/tsigkey.cc @@ -45,10 +45,11 @@ TSIGKey::TSIGKeyImpl { secret_(static_cast<const uint8_t*>(secret), static_cast<const uint8_t*>(secret) + secret_len) { - // Convert the name to the canonical form. + // Convert the key and algorithm names to the canonical form. + key_name_.downcase(); algorithm_name_.downcase(); } - const Name key_name_; + Name key_name_; Name algorithm_name_; const vector<uint8_t> secret_; }; |