X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2Fasn1.php;h=e84398bf6207e2ff67aebe363cc34b742902b63c;hb=62103fe5f42363d14e33b127c5ccaf2ba176d6ca;hp=132b0324800bf83638c5fb181a8f029ff6c5315b;hpb=9c10ada9060c9745f49652469e172be8152f6cad;p=friendica.git diff --git a/library/asn1.php b/library/asn1.php index 132b032480..e84398bf62 100644 --- a/library/asn1.php +++ b/library/asn1.php @@ -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; -} -