From a00303a6a04e49e56206de475c42c8908c5c0903 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Sat, 30 Dec 2017 12:23:45 -0500 Subject: [PATCH] Another ASN attempt #2 --- src/Util/Crypto.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Util/Crypto.php b/src/Util/Crypto.php index 1e304bc09..c63149e5f 100644 --- a/src/Util/Crypto.php +++ b/src/Util/Crypto.php @@ -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);