aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-28 12:33:30 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2023-03-28 12:33:30 +0000
commit8daceaad0699bd314320f038a7ed1157c9c92790 (patch)
tree53c6edaeffe99fae08fba6e9a4a1325a3df47cd3 /cli
parent9e1ef2c6bd798f0562b64af7095a17ea2fb77c58 (diff)
update phpseclib/phpseclib to 3.0.19, fixes #2478
Closes #2478 Merge request studip/studip!1672
Diffstat (limited to 'cli')
-rw-r--r--cli/Commands/OAuth2/Keys.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/Commands/OAuth2/Keys.php b/cli/Commands/OAuth2/Keys.php
index c9c0738..8274dbc 100644
--- a/cli/Commands/OAuth2/Keys.php
+++ b/cli/Commands/OAuth2/Keys.php
@@ -2,7 +2,7 @@
namespace Studip\Cli\Commands\OAuth2;
-use phpseclib\Crypt\RSA;
+use phpseclib3\Crypt\RSA;
use Studip\OAuth2\Container;
use Studip\OAuth2\KeyInformation;
use Studip\OAuth2\SetupInformation;
@@ -46,7 +46,7 @@ class Keys extends Command
$this->storeKeyContentsToFile($encryptionKey, $this->generateEncryptionKey());
- $keys = (new RSA())->createKey(4096);
+ $keys = RSA::createKey(4096);
$this->storeKeyContentsToFile($publicKey, $keys['publickey']);
$this->storeKeyContentsToFile($privateKey, $keys['privatekey']);