aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-05-19 22:51:26 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-07-12 19:24:20 +0200
commit04f209069859004702ca5138cda3dbcafe4d8c0f (patch)
tree30a901c9b02971e28ce3ef98b47c65bcac3ebe21 /lib/private/Server.php
parent86a496d94ae438ae5de033fd6d9c5bee19ed4fcf (diff)
downloadnextcloud-server-04f209069859004702ca5138cda3dbcafe4d8c0f.tar.gz
nextcloud-server-04f209069859004702ca5138cda3dbcafe4d8c0f.zip
Write cert bundle to tmp file first
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index d10da38d299..f8fd63a9d5d 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -596,7 +596,13 @@ class Server extends ServerContainer implements IServerContainer {
$uid = $user ? $user : null;
return new ClientService(
$c->getConfig(),
- new \OC\Security\CertificateManager($uid, new View(), $c->getConfig(), $c->getLogger())
+ new \OC\Security\CertificateManager(
+ $uid,
+ new View(),
+ $c->getConfig(),
+ $c->getLogger(),
+ $c->getSecureRandom()
+ )
);
});
$this->registerAlias('HttpClientService', \OCP\Http\Client\IClientService::class);
@@ -1438,7 +1444,13 @@ class Server extends ServerContainer implements IServerContainer {
}
$userId = $user->getUID();
}
- return new CertificateManager($userId, new View(), $this->getConfig(), $this->getLogger());
+ return new CertificateManager(
+ $userId,
+ new View(),
+ $this->getConfig(),
+ $this->getLogger(),
+ $this->getSecureRandom()
+ );
}
/**