diff options
author | Andreas Fischer <bantu@owncloud.com> | 2015-08-03 06:39:53 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2015-08-03 09:43:45 +0200 |
commit | 3b803db6d815a6d015d5fa013c8147d66a559973 (patch) | |
tree | a57c944135af4bb3390c1db1806937d320b4b3cd /apps/files_external/controller/ajaxcontroller.php | |
parent | 27bfab37bc2cdc4cc4e3de891c2ecfa7d71b90fd (diff) | |
download | nextcloud-server-3b803db6d815a6d015d5fa013c8147d66a559973.tar.gz nextcloud-server-3b803db6d815a6d015d5fa013c8147d66a559973.zip |
Update phpseclib to 2.0
Diffstat (limited to 'apps/files_external/controller/ajaxcontroller.php')
-rw-r--r-- | apps/files_external/controller/ajaxcontroller.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/controller/ajaxcontroller.php b/apps/files_external/controller/ajaxcontroller.php index 6225cd0b619..cb2de432286 100644 --- a/apps/files_external/controller/ajaxcontroller.php +++ b/apps/files_external/controller/ajaxcontroller.php @@ -25,6 +25,7 @@ namespace OCA\Files_External\Controller; use OCP\AppFramework\Controller; use OCP\IRequest; use OCP\AppFramework\Http\JSONResponse; +use phpseclib\Crypt\RSA; class AjaxController extends Controller { public function __construct($appName, IRequest $request) { @@ -32,8 +33,8 @@ class AjaxController extends Controller { } private function generateSshKeys() { - $rsa = new \Crypt_RSA(); - $rsa->setPublicKeyFormat(CRYPT_RSA_PUBLIC_FORMAT_OPENSSH); + $rsa = new RSA(); + $rsa->setPublicKeyFormat(RSA::PUBLIC_FORMAT_OPENSSH); $rsa->setPassword(\OC::$server->getConfig()->getSystemValue('secret', '')); $key = $rsa->createKey(); |