mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-19 22:25:03 +02:00
Remove CurlOption.ssl_verifypeer configuration
* Remove CurlOption.ssl_verifypeer configuration which was added when developing the multi-threaded transfer handling and OpenSSL was causing issues due to insufficient file handles to open the read of the CA Certificate. If the SSL CA Certificate cannot be read, we should hard exit.
This commit is contained in:
parent
d05a8f581e
commit
aa2ecdc2d9
|
@ -1287,6 +1287,7 @@ extern(C) nothrow @nogc @system void exitHandler(int value) {
|
|||
assumeNoGC ( () {
|
||||
addLogEntry("Got termination signal, performing clean up");
|
||||
// Wait for all parallel jobs that depend on the database to complete
|
||||
addLogEntry("Waiting for any existing upload|download process to complete");
|
||||
taskPool.finish(true);
|
||||
// Was itemDb initialised?
|
||||
if (itemDB.isDatabaseInitialised()) {
|
||||
|
|
|
@ -1665,10 +1665,10 @@ class OneDriveApi {
|
|||
// https://stackoverflow.com/questions/45829588/brew-install-fails-curl77-error-setting-certificate-verify
|
||||
// https://forum.dlang.org/post/vwvkbubufexgeuaxhqfl@forum.dlang.org
|
||||
|
||||
addLogEntry("Problem with reading the SSL CA cert via libcurl - attempting work around", ["debug"]);
|
||||
curlEngine.setDisableSSLVerifyPeer();
|
||||
// retry origional call
|
||||
performHTTPOperation();
|
||||
addLogEntry("Problem with reading the SSL CA cert via libcurl - please repair your system SSL CA Certificates");
|
||||
// Must force exit here, allow logging to be done. If needed later, we could re-use setDisableSSLVerifyPeer()
|
||||
Thread.sleep(dur!("msecs")(500));
|
||||
exit(-1);
|
||||
} else {
|
||||
// Log that an error was returned
|
||||
addLogEntry("ERROR: OneDrive returned an error with the following message:");
|
||||
|
|
Loading…
Reference in a new issue