diff options
author | Paul Selkirk <pselkirk@isc.org> | 2013-05-08 05:58:42 +0200 |
---|---|---|
committer | Paul Selkirk <pselkirk@isc.org> | 2013-05-16 05:37:33 +0200 |
commit | 60c3b4447c47bd08d990d91a3a412ac6b329ff08 (patch) | |
tree | 3be0a8ccdbc8ef19de8946da6a3ecfdb8eafd5b2 /src/lib/dns/rdata | |
parent | [2522] more TSIG unit tests (diff) | |
download | kea-60c3b4447c47bd08d990d91a3a412ac6b329ff08.tar.xz kea-60c3b4447c47bd08d990d91a3a412ac6b329ff08.zip |
[2522] convert TSIG string constructor tests to checkFromText
Diffstat (limited to 'src/lib/dns/rdata')
-rw-r--r-- | src/lib/dns/rdata/any_255/tsig_250.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dns/rdata/any_255/tsig_250.cc b/src/lib/dns/rdata/any_255/tsig_250.cc index 6632face1f..0a45f4f1e9 100644 --- a/src/lib/dns/rdata/any_255/tsig_250.cc +++ b/src/lib/dns/rdata/any_255/tsig_250.cc @@ -92,11 +92,11 @@ TSIG::constructFromLexer(MasterLexer& lexer) { isc_throw(InvalidRdataText, "TSIG Time out of range"); } - const int32_t fudge = lexer.getNextToken(MasterToken::NUMBER).getNumber(); + const uint32_t fudge = lexer.getNextToken(MasterToken::NUMBER).getNumber(); if (fudge > 0xffff) { isc_throw(InvalidRdataText, "TSIG Fudge out of range"); } - const int32_t macsize = lexer.getNextToken(MasterToken::NUMBER).getNumber(); + const uint32_t macsize = lexer.getNextToken(MasterToken::NUMBER).getNumber(); if (macsize > 0xffff) { isc_throw(InvalidRdataText, "TSIG MAC Size out of range"); } @@ -109,7 +109,7 @@ TSIG::constructFromLexer(MasterLexer& lexer) { isc_throw(InvalidRdataText, "TSIG MAC Size and data are inconsistent"); } - const int32_t orig_id = lexer.getNextToken(MasterToken::NUMBER).getNumber(); + const uint32_t orig_id = lexer.getNextToken(MasterToken::NUMBER).getNumber(); if (orig_id > 0xffff) { isc_throw(InvalidRdataText, "TSIG Original ID out of range"); } |