1
0
Fork 0

add back sanity checks

pull/4805/head
Rob Bast 2016-01-20 21:24:13 +01:00
parent c1488f65bf
commit 008cce8d85
1 changed files with 8 additions and 0 deletions

View File

@ -655,6 +655,14 @@ class RemoteFilesystem
}
}
if (isset($options['ssl']['cafile']) && (!is_readable($options['ssl']['cafile']) || !$this->validateCaFile($options['ssl']['cafile']))) {
throw new TransportException('The configured cafile was not valid or could not be read.');
}
if (isset($options['ssl']['capath']) && (!is_dir($options['ssl']['capath']) || !is_readable($options['ssl']['capath']))) {
throw new TransportException('The configured capath was not valid or could not be read.');
}
/**
* Disable TLS compression to prevent CRIME attacks where supported.
*/