Closed Ephenodrom closed 5 years ago
The identifier is not initialized if the ObjectIdentifier is created by the fromBytes method. I updated the method and used the logic from the equivalent class in Java BouncyCastle at https://github.com/bcgit/bc-java/blob/738dfc0132323d66ad27e7ec366666ed3e0638ab/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.java
I also added a new unit test.
Regards
Awesome!! Thanks for the PR. I'll push a new version to pub later today
version 0.5.9 pushed to pub
The identifier is not initialized if the ObjectIdentifier is created by the fromBytes method. I updated the method and used the logic from the equivalent class in Java BouncyCastle at https://github.com/bcgit/bc-java/blob/738dfc0132323d66ad27e7ec366666ed3e0638ab/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.java
I also added a new unit test.
Regards