-
Notifications
You must be signed in to change notification settings - Fork 28
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
How do I convert an asn1_rs::Any
to a BerObject
?
#67
Comments
Hi,
In addition to the above comments, I was wondering why you need a |
Note: since
Of course, this is only useful until |
In this particular case, yes. I'm updating code that pretty-printed algorithm parameters and now it can't. I stopped doing the upgrade when I hit this issue so I don't know if I'm going to run into |
Actually what I said wasn't true, I also have code that tests if the parameters is an |
NOT A CONTRIBUTION
I'm looking to update my code that uses x509-parser (and transitively der-parser). I have code that takes an
x509_parser::x509::AlgorithmIdentifier
, reads theparameters
field, and pretty-prints it. In x509-parser v0.12, the parameters are aDerObject
so that works. In v0.15 it's anAny
. The pretty-printing provided by der-parser exists onBerObject
.So, my question, how do I convert an
asn1_rs::Any
to aBerObject
? I would have expectedBerObject
to implementTryFrom<Any>
but it doesn't1. Is there any alternative way I'm missing?Footnotes
I see in the source a comment saying this is because of the lack of a
max_depth
argument, but I would have expected such an implementation to be recursive, and perhaps a method onBerObject
for converting fromAny
with a maximum depth specified. ↩The text was updated successfully, but these errors were encountered: