Changeset View
Changeset View
Standalone View
Standalone View
src/future/http/HTTPSFuture.php
| Show First 20 Lines • Show All 315 Lines • ▼ Show 20 Lines | if (!$this->handle) { | ||||
| // curl.cainfo). | // curl.cainfo). | ||||
| // - Otherwise, try using curl.cainfo. If it's set explicitly, it's | // - Otherwise, try using curl.cainfo. If it's set explicitly, it's | ||||
| // probably reasonable to try using it before we fall back to what | // probably reasonable to try using it before we fall back to what | ||||
| // libphutil ships with. | // libphutil ships with. | ||||
| // - Lastly, try the default that libphutil ships with. If it doesn't | // - Lastly, try the default that libphutil ships with. If it doesn't | ||||
| // work, give up and yell at the user. | // work, give up and yell at the user. | ||||
| if (!$this->getCABundle()) { | if (!$this->getCABundle()) { | ||||
| $caroot = dirname(phutil_get_library_root('phutil')).'/resources/ssl/'; | $arcanist_root = dirname(phutil_get_library_root('arcanist')); | ||||
| $caroot = $arcanist_root.'/resources/ssl/'; | |||||
| $ini_val = ini_get('curl.cainfo'); | $ini_val = ini_get('curl.cainfo'); | ||||
| if (self::getGlobalCABundle()) { | if (self::getGlobalCABundle()) { | ||||
| $this->setCABundleFromPath(self::getGlobalCABundle()); | $this->setCABundleFromPath(self::getGlobalCABundle()); | ||||
| } else if (Filesystem::pathExists($caroot.'custom.pem')) { | } else if (Filesystem::pathExists($caroot.'custom.pem')) { | ||||
| $this->setCABundleFromPath($caroot.'custom.pem'); | $this->setCABundleFromPath($caroot.'custom.pem'); | ||||
| } else if ($ini_val) { | } else if ($ini_val) { | ||||
| // TODO: We can probably do a pathExists() here, even. | // TODO: We can probably do a pathExists() here, even. | ||||
| $this->setCABundleFromPath($ini_val); | $this->setCABundleFromPath($ini_val); | ||||
| ▲ Show 20 Lines • Show All 357 Lines • Show Last 20 Lines | |||||