Skip to content

der: remove IndefiniteLength #1807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2025
Merged

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented May 4, 2025

The original idea of this type was to have a type-safe distinction between DER lengths (Length) and potentially indefinite BER lengths (IndefiniteLength), but really what's needed is to make the Length type support idefinite lengths when EncodingRules::Ber are in use.

Otherwise, we need to change Header to use IndefiniteLength, which kind of defeats the point.

The original idea of this type was to have a type-safe distinction
between DER lengths (`Length`) and potentially indefinite BER lengths
(`IndefiniteLength`), but really what's needed is to make the `Length`
type support idefinite lengths when `EncodingRules::Ber` are in use.

Otherwise, we need to change `Header` to use `IndefiniteLength`, which
kind of defeats the point.
@tarcieri tarcieri merged commit ae26520 into master May 4, 2025
107 checks passed
@tarcieri tarcieri deleted the der/remove-indefinite-length branch May 4, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant