diff --git a/phpseclib/File/ASN1.php b/phpseclib/File/ASN1.php index b33cdd4e..90490b3d 100644 --- a/phpseclib/File/ASN1.php +++ b/phpseclib/File/ASN1.php @@ -844,7 +844,7 @@ class ASN1 NOTE - The padding octets are for comparison purposes only and do not appear in the encodings." -- sec 11.6 of http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf */ - if ($mapping['type'] == FILE_ASN1_TYPE_SET) { + if ($mapping['type'] == self::TYPE_SET) { sort($value); } $value = implode($value, '');