summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-09-16 11:51:15 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2018-09-16 11:51:15 +0200
commit90a9a1ecc60467992cc8e969487bfb4a3728dbca (patch)
tree1b53336adc6eeafe2554cab5b99a235614595490 /lib/private/Authentication/Token
parenta2c8b3f00bb9140800c4a596defc9d9cb37bb893 (diff)
downloadnextcloud-server-90a9a1ecc60467992cc8e969487bfb4a3728dbca.tar.gz
nextcloud-server-90a9a1ecc60467992cc8e969487bfb4a3728dbca.zip
Consider openssl settings from config.php
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/Authentication/Token')
-rw-r--r--lib/private/Authentication/Token/PublicKeyTokenProvider.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php
index 73bd7a711dc..28c46686a79 100644
--- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php
+++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php
@@ -287,10 +287,10 @@ class PublicKeyTokenProvider implements IProvider {
$dbToken->setUid($uid);
$dbToken->setLoginName($loginName);
- $config = [
+ $config = array_merge([
'digest_alg' => 'sha512',
'private_key_bits' => 2048,
- ];
+ ], $this->config->getSystemValue('openssl', []));
// Generate new key
$res = openssl_pkey_new($config);