aboutsummaryrefslogtreecommitdiff
path: root/libbutl/openssl.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-02-12 21:42:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-02-12 21:42:20 +0300
commit282dce564a6cd33469f6b82ce94582bc4d9121be (patch)
tree3e8dceb6e0489bdddbd15cac22365a5ed6ca68a4 /libbutl/openssl.cxx
parent5fb6e5041b65150ec1c78d5e39caeb23e2f9a531 (diff)
Rename fdnull() to fdopen_null()
Diffstat (limited to 'libbutl/openssl.cxx')
-rw-r--r--libbutl/openssl.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/libbutl/openssl.cxx b/libbutl/openssl.cxx
index ecbebcd..8741b35 100644
--- a/libbutl/openssl.cxx
+++ b/libbutl/openssl.cxx
@@ -38,7 +38,7 @@ namespace butl
process::pipe openssl::
map_in (nullfd_t, io_data& d)
{
- d.pipe.in = fdnull (); // /dev/null
+ d.pipe.in = fdopen_null (); // /dev/null
return pipe (d.pipe);
}
@@ -59,7 +59,7 @@ namespace butl
{
d.options.push_back ("-in");
d.options.push_back (f.string ().c_str ());
- d.pipe.in = fdnull (); // /dev/null
+ d.pipe.in = fdopen_null (); // /dev/null
r = pipe (d.pipe);
}
@@ -77,7 +77,7 @@ namespace butl
? fdopen_mode::binary
: fdopen_mode::none);
pipe r (d.pipe);
-
+
out.open (move (d.pipe.out));
return r;
}
@@ -85,7 +85,7 @@ namespace butl
process::pipe openssl::
map_out (nullfd_t, io_data& d)
{
- d.pipe.out = fdnull ();
+ d.pipe.out = fdopen_null ();
return pipe (d.pipe); // /dev/null
}
@@ -106,7 +106,7 @@ namespace butl
{
d.options.push_back ("-out");
d.options.push_back (f.string ().c_str ());
- d.pipe.out = fdnull (); // /dev/null
+ d.pipe.out = fdopen_null (); // /dev/null
r = pipe (d.pipe);
}
@@ -124,7 +124,7 @@ namespace butl
? fdopen_mode::binary
: fdopen_mode::none);
pipe r (d.pipe);
-
+
in.open (move (d.pipe.in), fdstream_mode::skip);
return r;
}