diff --git a/CHANGELOG.md b/CHANGELOG.md index babade9..c4b4e33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## 0.2.10 + +- Removed distribution points implementation. + ## 0.2.9 - Fixed distribution points to use tags instead of indexes diff --git a/lib/src/extension.dart b/lib/src/extension.dart index d00e92b..7db6cd8 100644 --- a/lib/src/extension.dart +++ b/lib/src/extension.dart @@ -570,30 +570,8 @@ class DistributionPoint { /// reasons [1] ReasonFlags OPTIONAL, /// cRLIssuer [2] GeneralNames OPTIONAL } factory DistributionPoint.fromAsn1(ASN1Sequence sequence) { - String? name; - List? reasons; - String? crlIssuer; - for (final element in sequence.elements) { - switch (element.tag) { - case 0xa0: - name = toDart(element); - break; - case 0xa1: - reasons = ((element as ASN1BitString) - .valueBytes() - .map((v) => DistributionPointReason.values[v]) - .toList()); - break; - case 0xa2: - crlIssuer = String.fromCharCodes(toDart(element)); - break; - } - } - return DistributionPoint( - name: name, - reasons: reasons, - crlIssuer: crlIssuer, - ); + // TODO Implement the correct behaviour here. We ignore it for now. + return DistributionPoint(); } } diff --git a/pubspec.yaml b/pubspec.yaml index 41b3235..b9987ae 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: x509b description: Dart library for parsing and working with X.509 certificates. -version: 0.2.9 +version: 0.2.10 homepage: https://github.com/jeroentrappers/x509 environment: