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

Write TLV #187

Closed
macmv opened this issue Jun 28, 2021 · 1 comment
Closed

Write TLV #187

macmv opened this issue Jun 28, 2021 · 1 comment

Comments

@macmv
Copy link

macmv commented Jun 28, 2021

I'm trying to write a Tlv value to a DER key, but I cannot figure out how. Is there any way to do this? Specifically, I am trying to write a NULL value. I don't see any public API to write any of this. Could there be an unsafe constructor added to the Tlv type? It implements Asn1Writable, but does not appear to be constructable.

A NULL type would only be a partial fix in my opinion. It would be very helpful to be able to construct a Tlv in user space code.

@macmv
Copy link
Author

macmv commented Jun 28, 2021

I just realized that () is a NULL value. Unless I missed something (probably the case) this should be mentioned somewhere in the docs. Anyway, going to close this now.

@macmv macmv closed this as completed Jun 28, 2021
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