Skip to content
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

Bijection support for basic types #40

Open
yschimke opened this issue Aug 21, 2020 · 0 comments
Open

Bijection support for basic types #40

yschimke opened this issue Aug 21, 2020 · 0 comments

Comments

@yschimke
Copy link
Collaborator

yschimke commented Aug 21, 2020

From https://github.com/cashapp/certifikit/pull/39/files

data class ExtKeyUsage(val objectIdentifier: String) {
...
}

internal val extKeyUsage: BasicDerAdapter<List<String>> = OBJECT_IDENTIFIER.asSequenceOf()

Something like

internal val extKeyUsage: BasicDerAdapter<List<ExtKeyUsage>> = OBJECT_IDENTIFIER.mapped<ExtKeyUsage>().asSequenceOf()
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

No branches or pull requests

1 participant