1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 10:31:15 +02:00

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.
This commit is contained in:
Robert Hensing 2023-02-01 13:34:32 +01:00
parent 0746951be1
commit 6e0b7109ab
4 changed files with 31 additions and 21 deletions

View file

@ -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());