Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
6620f7a7
Commit
6620f7a7
authored
May 14, 2013
by
JINMEI Tatuya
Browse files
[2522] trivial style cleanup: folded long lines
parent
0857d558
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/rdata/any_255/tsig_250.cc
View file @
6620f7a7
...
...
@@ -81,7 +81,8 @@ TSIG::constructFromLexer(MasterLexer& lexer) {
const
Name
root
(
"."
);
const
Name
&
algorithm
=
createNameFromLexer
(
lexer
,
&
root
);
const
string
time_str
=
lexer
.
getNextToken
(
MasterToken
::
STRING
).
getString
();
const
string
time_str
=
lexer
.
getNextToken
(
MasterToken
::
STRING
).
getString
();
uint64_t
time_signed
;
try
{
time_signed
=
boost
::
lexical_cast
<
uint64_t
>
(
time_str
);
...
...
@@ -96,7 +97,8 @@ TSIG::constructFromLexer(MasterLexer& lexer) {
if
(
fudge
>
0xffff
)
{
isc_throw
(
InvalidRdataText
,
"TSIG Fudge out of range"
);
}
const
uint32_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,12 +111,14 @@ TSIG::constructFromLexer(MasterLexer& lexer) {
isc_throw
(
InvalidRdataText
,
"TSIG MAC Size and data are inconsistent"
);
}
const
uint32_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"
);
}
const
string
error_txt
=
lexer
.
getNextToken
(
MasterToken
::
STRING
).
getString
();
const
string
error_txt
=
lexer
.
getNextToken
(
MasterToken
::
STRING
).
getString
();
uint16_t
error
=
0
;
// XXX: In the initial implementation we hardcode the mnemonics.
// We'll soon generalize this.
...
...
@@ -134,7 +138,8 @@ TSIG::constructFromLexer(MasterLexer& lexer) {
}
}
const
int32_t
otherlen
=
lexer
.
getNextToken
(
MasterToken
::
NUMBER
).
getNumber
();
const
int32_t
otherlen
=
lexer
.
getNextToken
(
MasterToken
::
NUMBER
).
getNumber
();
if
(
otherlen
>
0xffff
)
{
isc_throw
(
InvalidRdataText
,
"TSIG Other Len out of range"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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