diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-02-01 13:34:32 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-04-07 16:24:18 +0200 |
commit | 6e0b7109abb40ded327b15599b29f861d9acb3c9 (patch) | |
tree | ec76c73232d9440ecabb5bc4a2263c351b77a0a7 /src/libutil/util.cc | |
parent | 0746951be1563b1dd590690f9ee48a2fe964bd93 (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.cc | 4 |
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()); |