]> git.mxchange.org Git - friendica.git/commitdiff
ASN_BASE
authorAdam Magness <adam.magness@gmail.com>
Sat, 30 Dec 2017 17:09:08 +0000 (12:09 -0500)
committerAdam Magness <adam.magness@gmail.com>
Sat, 30 Dec 2017 17:09:08 +0000 (12:09 -0500)
error ASN_BASE not found. Probably a namespace thing.

src/Util/Crypto.php

index 433a5cd6746a29fd50a99dcd42209467d570e727..1e304bc09b9302482419ef9b0dc4eebd69875415 100644 (file)
@@ -156,7 +156,7 @@ class Crypto
                unset($lines[count($lines)]);
                $x = base64_decode(implode('', $lines));
 
-               $r = ASN_BASE::parseASNString($x);
+               $r = parseASNString($x);
 
                $m = base64url_decode($r[0]->asnData[0]->asnData);
                $e = base64url_decode($r[0]->asnData[1]->asnData);
@@ -195,7 +195,7 @@ class Crypto
                unset($lines[count($lines)]);
                $x = base64_decode(implode('', $lines));
 
-               $r = ASN_BASE::parseASNString($x);
+               $r = 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);