]> git.mxchange.org Git - friendica.git/blobdiff - library/asn1.php
Merge remote branch 'upstream/master'
[friendica.git] / library / asn1.php
index 132b0324800bf83638c5fb181a8f029ff6c5315b..e84398bf6207e2ff67aebe363cc34b742902b63c 100644 (file)
@@ -186,8 +186,7 @@ class ASN_BASE {
                        case ASN_BOOLEAN:
                                return new ASN_BOOLEAN((bool)$data);
                        case ASN_INTEGER:
-                               return new ASN_INTEGER(strtr(base64_encode($data),'+/=','-_,'));
-//                             return new ASN_INTEGER(ord($data));
+                               return new ASN_INTEGER(strtr(base64_encode($data),'+/','-_'));
                        case ASN_BIT_STR:
                                return new ASN_BIT_STR(self::parseASNString($data, $level+1, $maxLevels));
                        case ASN_OCTET_STR:
@@ -290,9 +289,3 @@ class ASN_BASE {
        
 }
 
-
-function accum($s) {
-       $result = strtr(base64_encode($s),'+/=','-_,');
-    return $result;
-}
-