]> git.mxchange.org Git - friendica.git/commitdiff
Another ASN
authorAdam Magness <adam.magness@gmail.com>
Sat, 30 Dec 2017 17:23:45 +0000 (12:23 -0500)
committerAdam Magness <adam.magness@gmail.com>
Sat, 30 Dec 2017 17:23:45 +0000 (12:23 -0500)
attempt #2

src/Util/Crypto.php

index 1e304bc09b9302482419ef9b0dc4eebd69875415..c63149e5fab9628ac810423f94d9d04f1d806712 100644 (file)
@@ -5,6 +5,7 @@
 namespace Friendica\Util;
 
 use Friendica\Core\Config;
+use ASN_BASE;
 
 require_once 'library/ASNValue.class.php';
 require_once 'library/asn1.php';
@@ -156,7 +157,7 @@ class Crypto
                unset($lines[count($lines)]);
                $x = base64_decode(implode('', $lines));
 
-               $r = parseASNString($x);
+               $r = ASN_BASE::parseASNString($x);
 
                $m = base64url_decode($r[0]->asnData[0]->asnData);
                $e = base64url_decode($r[0]->asnData[1]->asnData);
@@ -195,7 +196,7 @@ class Crypto
                unset($lines[count($lines)]);
                $x = base64_decode(implode('', $lines));
 
-               $r = parseASNString($x);
+               $r = ASN_BASE::parseASNString($x);
 
                $m = base64url_decode($r[0]->asnData[1]->asnData[0]->asnData[0]->asnData);
                $e = base64url_decode($r[0]->asnData[1]->asnData[0]->asnData[1]->asnData);