aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
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()
+ );
}
/**