Use secure_getenv(3) when available.
[openssl.git] / crypto / ct / ct_log.c
index be6681dca74e6a1b092b3b9332955ae01c66c17d..c1bca3e1415e507b057085b9c39900f66e4b7d76 100644 (file)
@@ -137,7 +137,7 @@ static int ctlog_new_from_conf(CTLOG **ct_log, const CONF *conf, const char *sec
 
 int CTLOG_STORE_load_default_file(CTLOG_STORE *store)
 {
-    const char *fpath = getenv(CTLOG_FILE_EVP);
+    const char *fpath = ossl_safe_getenv(CTLOG_FILE_EVP);
 
     if (fpath == NULL)
       fpath = CTLOG_FILE;