* compatible with other HTTP client implementations like wget, curl and git
*/
if (no_proxy == NULL)
- no_proxy = getenv("no_proxy");
+ no_proxy = ossl_safe_getenv("no_proxy");
if (no_proxy == NULL)
- no_proxy = getenv(OPENSSL_NO_PROXY);
+ no_proxy = ossl_safe_getenv(OPENSSL_NO_PROXY);
if (no_proxy != NULL)
found = strstr(no_proxy, server);
* compatible with other HTTP client implementations like wget, curl and git
*/
if (proxy == NULL)
- proxy = getenv(use_ssl ? "https_proxy" : "http_proxy");
+ proxy = ossl_safe_getenv(use_ssl ? "https_proxy" : "http_proxy");
if (proxy == NULL)
- proxy = getenv(use_ssl ? OPENSSL_HTTP_PROXY :
- OPENSSL_HTTPS_PROXY);
+ proxy = ossl_safe_getenv(use_ssl ? OPENSSL_HTTP_PROXY : OPENSSL_HTTPS_PROXY);
if (proxy == NULL || *proxy == '\0' || !use_proxy(no_proxy, server))
return NULL;