aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/eax_test.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-27 20:50:45 +0000
committerlloyd <[email protected]>2008-09-27 20:50:45 +0000
commit6e1a728277998a77b5c4b8323f037ce73a004c03 (patch)
tree181bc0497baed06ac15c8d96629938904382873f /doc/examples/eax_test.cpp
parent0dacae7ecffb9cf3fbdd8e56524f9b68bb1c16cf (diff)
Fix link for EAX tet prog
Diffstat (limited to 'doc/examples/eax_test.cpp')
-rw-r--r--doc/examples/eax_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/eax_test.cpp b/doc/examples/eax_test.cpp
index 18f981531..2e0790257 100644
--- a/doc/examples/eax_test.cpp
+++ b/doc/examples/eax_test.cpp
@@ -168,8 +168,6 @@ void run_tests(std::istream& in)
std::string algo;
std::string key;
- boost::regex vec_regex("^([ 0-9]{3}): (.*), (.*)$");
-
while(in.good())
{
std::string line;
@@ -187,6 +185,8 @@ void run_tests(std::istream& in)
}
else if(algo != "")
{
+ boost::regex vec_regex("^([ 0-9]{3}): (.*), (.*)$");
+
boost::smatch what;
if(boost::regex_match(line, what, vec_regex, boost::match_extra))