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:
parent
0746951be1
commit
6e0b7109ab
4 changed files with 31 additions and 21 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue