From 3b803db6d815a6d015d5fa013c8147d66a559973 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 3 Aug 2015 06:39:53 +0200 Subject: Update phpseclib to 2.0 --- apps/files_external/controller/ajaxcontroller.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/files_external/controller/ajaxcontroller.php') 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(); -- cgit v1.2.3