summaryrefslogtreecommitdiffstats
path: root/apps/files_external/controller/ajaxcontroller.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2015-08-03 06:39:53 +0200
committerAndreas Fischer <bantu@owncloud.com>2015-08-03 09:43:45 +0200
commit3b803db6d815a6d015d5fa013c8147d66a559973 (patch)
treea57c944135af4bb3390c1db1806937d320b4b3cd /apps/files_external/controller/ajaxcontroller.php
parent27bfab37bc2cdc4cc4e3de891c2ecfa7d71b90fd (diff)
downloadnextcloud-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.php5
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();