]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Missed some phpseclib stuff in DiasporaPlugin
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 19 Jun 2016 00:26:44 +0000 (02:26 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 19 Jun 2016 00:26:44 +0000 (02:26 +0200)
plugins/Diaspora/DiasporaPlugin.php

index c4385e87e3e457ae02ec1223aa94f95a37c7afc3..322c4f792ad7f95f1393d5f430befef2d1bd1886 100644 (file)
@@ -34,7 +34,6 @@ if (!defined('GNUSOCIAL')) { exit(1); }
 addPlugin('OStatus');
 
 //Since Magicsig hasn't loaded yet
-require_once('Crypt/AES.php');
 
 class DiasporaPlugin extends Plugin
 {
@@ -46,7 +45,7 @@ class DiasporaPlugin extends Plugin
     {
         // So far we've only handled RSA keys, but it can change in the future,
         // so be prepared. And remember to change the statically assigned type attribute below!
-        assert($magicsig->publicKey instanceof Crypt_RSA);
+        assert($magicsig->publicKey instanceof \phpseclib\Crypt\RSA);
         $xrd->links[] = new XML_XRD_Element_Link(self::REL_PUBLIC_KEY,
                                     base64_encode($magicsig->exportPublicKey()), 'RSA');