aboutsummaryrefslogtreecommitdiff
path: root/libbutl/openssl.ixx
blob: db2fbcd7a8e7a83063eb83d61de7ee85e068ada3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// file      : libbutl/openssl.ixx -*- C++ -*-
// license   : MIT; see accompanying LICENSE file

#include <cstddef> // size_t
#include <utility> // forward()

namespace butl
{
  template <typename I,
            typename O,
            typename E,
            typename... A>
  inline openssl::
  openssl (I&& in,
           O&& out,
           E&& err,
           const process_env& env,
           const std::string& command,
           A&&... options)
      : openssl ([] (const char* [], std::size_t) {},
                 std::forward<I> (in),
                 std::forward<O> (out),
                 std::forward<E> (err),
                 env,
                 command,
                 std::forward<A> (options)...)
  {
  }

  template <typename E>
  inline optional<openssl_info> openssl::
  info (E&& err, const process_env& env)
  {
    return info ([] (const char* [], std::size_t) {},
                 std::forward<E> (err),
                 env);
  }
}