From 95ff8f359cfc2189bd4d7e02e15373027d2bda32 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 29 May 2017 20:05:54 +0300 Subject: Implement openssl process --- libbutl/fdstream.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbutl/fdstream.hxx') diff --git a/libbutl/fdstream.hxx b/libbutl/fdstream.hxx index dd33263..a8f203d 100644 --- a/libbutl/fdstream.hxx +++ b/libbutl/fdstream.hxx @@ -387,6 +387,13 @@ namespace butl void open (auto_fd&& fd) {buf_.open (std::move (fd)); clear ();} + void + open (auto_fd&& fd, fdstream_mode m) + { + open (std::move (fd)); + skip_ = (m & fdstream_mode::skip) == fdstream_mode::skip; + } + void close (); auto_fd release (); // Note: no skipping. bool is_open () const {return buf_.is_open ();} -- cgit v1.1