aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-02-01 13:34:32 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-04-07 16:24:18 +0200
commit6e0b7109abb40ded327b15599b29f861d9acb3c9 (patch)
treeec76c73232d9440ecabb5bc4a2263c351b77a0a7 /src/libutil/util.cc
parent0746951be1563b1dd590690f9ee48a2fe964bd93 (diff)
Move OpenSSL init to initLibUtil
Part of an effort to make it easier to initialize the right things, by moving code into the appropriate libraries.
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 843a10eab..0099f7ebc 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -47,6 +47,10 @@ extern char * * environ __attribute__((weak));
namespace nix {
+void initLibUtil() {
+ initOpenSSL();
+}
+
std::optional<std::string> getEnv(const std::string & key)
{
char * value = getenv(key.c_str());