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

Fix and beautify OCTET STRING class hierarchy #24

Closed
wants to merge 1 commit into from

Conversation

JesusMcCloud
Copy link
Collaborator

enables processing as such:

val TbsCertificationRequest.attestationProof: List<ByteArray>?
    get() = runCatching {
        attributes?.find { it.oid == OID_ATTESTATION_PROOF }?.value?.singleOrNull()
            .let { it as Asn1Sequence }.children.map { (it as Asn1OctetString<*>).content }
    }.getOrNull()

@JesusMcCloud JesusMcCloud self-assigned this Oct 29, 2023
Copy link
Collaborator

@nodh nodh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@JesusMcCloud
Copy link
Collaborator Author

it's already in development

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.

2 participants