aboutsummaryrefslogtreecommitdiff
path: root/libbutl/fdstream.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-29 20:05:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-30 19:04:13 +0300
commit95ff8f359cfc2189bd4d7e02e15373027d2bda32 (patch)
tree2b22d991886c0a5c2678ea0fb5f565f90d57df25 /libbutl/fdstream.hxx
parent1b57e247b8d1a7a41a8ee45d6d524c71edd63a81 (diff)
Implement openssl process
Diffstat (limited to 'libbutl/fdstream.hxx')
-rw-r--r--libbutl/fdstream.hxx7
1 files changed, 7 insertions, 0 deletions
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 ();}