diff options
Diffstat (limited to 'bpkg/openssl.hxx')
-rw-r--r-- | bpkg/openssl.hxx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/bpkg/openssl.hxx b/bpkg/openssl.hxx new file mode 100644 index 0000000..30671ae --- /dev/null +++ b/bpkg/openssl.hxx @@ -0,0 +1,31 @@ +// file : bpkg/openssl.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BPKG_OPENSSL_HXX +#define BPKG_OPENSSL_HXX + +#include <butl/process> + +#include <bpkg/types.hxx> +#include <bpkg/utility.hxx> + +#include <bpkg/common-options.hxx> + +namespace bpkg +{ + // Start the openssl process. Parameters in, out, err flags if the caller + // wish to write to, or read from the process STDIN, STDOUT, STDERR streams. + // If out and err are both true, then STDERR is redirected to STDOUT, and + // they both can be read from in_ofd descriptor. + // + butl::process + start_openssl (const common_options&, + const char* command, + const cstrings& options, + bool in = false, + bool out = false, + bool err = false); +} + +#endif // BPKG_OPENSSL_HXX |