aboutsummaryrefslogtreecommitdiff
path: root/tests/openssl
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-30 19:05:43 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-31 00:51:43 +0300
commitc7ec29b2d6a66700933ede6ae2371e1d54744d67 (patch)
tree119ff80f333892422e99cd352c99702f0ae7eb7c /tests/openssl
parent95ff8f359cfc2189bd4d7e02e15373027d2bda32 (diff)
Add ifdstream::read_text() and ifdstream::read_binary()
Diffstat (limited to 'tests/openssl')
-rw-r--r--tests/openssl/driver.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/openssl/driver.cxx b/tests/openssl/driver.cxx
index 769c77e..b0e37ae 100644
--- a/tests/openssl/driver.cxx
+++ b/tests/openssl/driver.cxx
@@ -22,10 +22,9 @@ try
{
openssl os (nullfd, path ("-"), 2, path ("openssl"), "rand", 128);
- vector<char> r
- ((istreambuf_iterator<char> (os.in)), istreambuf_iterator<char> ());
-
+ vector<char> r (os.in.read_binary ());
os.in.close ();
+
return os.wait () && r.size () == 128 ? 0 : 1;
}
catch (const system_error& e)