diff options
author | lloyd <[email protected]> | 2010-03-03 02:02:48 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-03 02:02:48 +0000 |
commit | 82ab6d27cc2b434b4b7ffa528396d67fe6993222 (patch) | |
tree | 6be9207091acf15df1936ab072a2562c7f111ff9 /doc/examples/eax_test.cpp | |
parent | a0d6ce4ce5ccb0108cdd155c7abd830432dc6991 (diff) |
Fix minor errors and warnings in the examples. Remove boost dependency from
rng_test example.
Diffstat (limited to 'doc/examples/eax_test.cpp')
-rw-r--r-- | doc/examples/eax_test.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/examples/eax_test.cpp b/doc/examples/eax_test.cpp index 3f7dbcbc8..32311800d 100644 --- a/doc/examples/eax_test.cpp +++ b/doc/examples/eax_test.cpp @@ -14,7 +14,9 @@ using namespace Botan; -unsigned to_string(const std::string& s) +namespace { + +unsigned from_string(const std::string& s) { std::istringstream stream(s); unsigned n; @@ -211,7 +213,7 @@ void run_tests(std::istream& in) if(boost::regex_match(line, what, vec_regex, boost::match_extra)) { - unsigned n = to_string(what[1]); + unsigned n = from_string(what[1]); std::string ciphertext = what[2]; std::string tag = what[3]; @@ -230,6 +232,8 @@ void run_tests(std::istream& in) } +} + int main() { std::ifstream in("eax_tv.txt"); |