auth.reset(new Option6Auth(1,2,0,9000,{'a','b','c','d'}));
string exp_txt = " protocol=1, algorithm=2, rdm method=0, rdm value=9000, value=61626364";
-
- std::cout << auth->toText(2) << std::endl;
-
+ EXPECT_EQ(exp_txt, auth->toText(2));
}
} //end namespace
// use for integrity check
unsigned int labels = getLabelCount();
// init with an impossible value to catch error cases in the end:
+ // cppcheck complains this value is never used...
unsigned int count = Name::MAX_LABELLEN + 1;
// result string: it will roughly have the same length as the wire format
// use for integrity check
unsigned int labels = getLabelCount();
// init with an impossible value to catch error cases in the end:
+ // cppcheck complains this value is never used...
unsigned int count = Name::MAX_LABELLEN + 1;
// result string: it will roughly have the same length as the wire format