aboutsummaryrefslogtreecommitdiff
path: root/openssl/utility.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-10-15 21:08:04 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-17 15:02:42 +0300
commitde91921561092689369b56c54950474e0a86e66f (patch)
treea9949058021d911db1106b1a2e4d9e0e9281de16 /openssl/utility.hxx
parentfb65c93daaf369157bd712f2c4c20161c4840b94 (diff)
Add implementation
Diffstat (limited to 'openssl/utility.hxx')
-rw-r--r--openssl/utility.hxx74
1 files changed, 74 insertions, 0 deletions
diff --git a/openssl/utility.hxx b/openssl/utility.hxx
new file mode 100644
index 0000000..5a905ab
--- /dev/null
+++ b/openssl/utility.hxx
@@ -0,0 +1,74 @@
+// file : openssl/utility.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef OPENSSL_UTILITY_HXX
+#define OPENSSL_UTILITY_HXX
+
+#include <string> // to_string()
+#include <utility> // move(), forward(), declval(), make_pair()
+#include <cassert> // assert()
+
+#include <libbutl/utility.mxx> // casecmp(), reverse_iterate(), etc
+#include <libbutl/fdstream.mxx>
+#include <libbutl/filesystem.mxx>
+
+#include <openssl/types.hxx>
+#include <openssl/version.hxx>
+
+namespace openssl
+{
+ using std::move;
+ using std::forward;
+ using std::declval;
+
+ using std::make_pair;
+ using std::to_string;
+
+ // <libbutl/utility.mxx>
+ //
+ using butl::ucase;
+ using butl::lcase;
+ using butl::casecmp;
+
+ using butl::trim;
+ using butl::next_word;
+
+ using butl::reverse_iterate;
+
+ using butl::make_guard;
+ using butl::make_exception_guard;
+
+ using butl::getenv;
+ using butl::setenv;
+ using butl::unsetenv;
+
+ using butl::eof;
+
+ using butl::throw_generic_error;
+ using butl::throw_system_error;
+
+ using butl::throw_generic_ios_failure;
+ using butl::throw_system_ios_failure;
+
+ // <libbutl/filesystem.mxx>
+ //
+ using butl::file_exists;
+
+ using butl::auto_rmfile;
+ using butl::auto_rmdir;
+
+ // <libbutl/fdstream.mxx>
+ //
+ using butl::stdin_fdmode;
+ using butl::stdout_fdmode;
+ using butl::fdnull;
+ using butl::fddup;
+
+ // Securely clear a memory buffer.
+ //
+ void
+ mem_clear (void*, size_t);
+}
+
+#endif // OPENSSL_UTILITY_HXX