From c7ec29b2d6a66700933ede6ae2371e1d54744d67 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 30 May 2017 19:05:43 +0300 Subject: Add ifdstream::read_text() and ifdstream::read_binary() --- tests/openssl/driver.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/openssl') 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 r - ((istreambuf_iterator (os.in)), istreambuf_iterator ()); - + vector r (os.in.read_binary ()); os.in.close (); + return os.wait () && r.size () == 128 ? 0 : 1; } catch (const system_error& e) -- cgit v1.1