aboutsummaryrefslogtreecommitdiff
path: root/libbutl/openssl.ixx
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/openssl.ixx
parent1b57e247b8d1a7a41a8ee45d6d524c71edd63a81 (diff)
Implement openssl process
Diffstat (limited to 'libbutl/openssl.ixx')
-rw-r--r--libbutl/openssl.ixx31
1 files changed, 31 insertions, 0 deletions
diff --git a/libbutl/openssl.ixx b/libbutl/openssl.ixx
new file mode 100644
index 0000000..2af5029
--- /dev/null
+++ b/libbutl/openssl.ixx
@@ -0,0 +1,31 @@
+// file : libbutl/openssl.ixx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#include <cstddef> // size_t
+#include <utility> // move(), forward()
+
+namespace butl
+{
+ template <typename I,
+ typename O,
+ typename E,
+ typename P,
+ typename... A>
+ inline openssl::
+ openssl (I&& in,
+ O&& out,
+ E&& err,
+ const P& program,
+ const std::string& command,
+ A&&... options)
+ : openssl ([] (const char* [], std::size_t) {},
+ std::forward<I> (in),
+ std::forward<O> (out),
+ std::forward<E> (err),
+ program,
+ command,
+ std::forward<A> (options)...)
+ {
+ }
+}