Comments (1)
Hi,
It seems this bug was related to #3 since the sequence contains a list of big integers.
The fix in todays git should solve the problem, your program now displays:
rest: []
next1: Some(DerObject { class: 0, structured: 0, tag: 2, content: Integer([0]) })
next2: Some(DerObject { class: 0, structured: 0, tag: 2, content: Integer([0, 216, 254, 163, 94, 36, 88, 185, 244, 2, 73, 84, 186, 170, 202, 166, 19, 86, 75, 64, 135, 31, 112, 147, 25, 142, 94, 106, 131, 230, 186, 84, 63, 108, 239, 92, 161, 210, 28, 110, 210, 140, 55, 23, 55, 59, 201, 232, 119, 126, 249, 254, 218, 197, 69, 190, 83, 37, 103, 170, 110, 209, 21, 68, 213, 6, 157, 226, 171, 231, 70, 209, 37, 117, 27, 144, 97, 202, 184, 67, 14, 131, 255, 116, 234, 189, 236, 141, 86, 195, 187, 53, 160, 37, 232, 75, 189, 203, 13, 215, 52, 103, 70, 237, 234, 149, 202, 186, 197, 82, 118, 23, 39, 67, 162, 165, 142, 139, 159, 44, 2, 179, 126, 70, 236, 64, 20, 174, 101, 190, 249, 209, 244, 2, 185, 221, 180, 74, 155, 242, 227, 235, 15, 179, 246, 19, 183, 248, 181, 78, 147, 101, 164, 41, 189, 153, 207, 203, 243, 213, 89, 71, 188, 147, 133, 94, 200, 75, 208, 1, 34, 13, 233, 20, 136, 143, 184, 4, 50, 85, 236, 201, 238, 35, 128, 92, 144, 153, 151, 47, 23, 183, 36, 163, 127, 219, 133, 100, 134, 233, 128, 248, 252, 185, 133, 200, 76, 117, 130, 52, 36, 234, 161, 7, 69, 121, 188, 143, 149, 181, 10, 244, 148, 27, 158, 56, 24, 25, 222, 47, 58, 22, 34, 143, 59, 186, 228, 0, 49, 121, 63, 101, 123, 96, 50, 113, 206, 122, 210, 206, 226, 80, 188, 67, 95, 85, 123]) })
Iterating on all objects shows a list of integers:
for obj in der.1.ref_iter() {
println!("obj: {:?}", obj);
}
This program shows 9 objects.
Closing since it should be solved by 34e9e15
from der-parser.
Related Issues (20)
- BerObject struct changes HOT 3
- Parsing empty sequences fail HOT 1
- It would be good if .as_u64() could parse BitStrings into numbers, too HOT 1
- Running into build errors on debian stretch
- fails to build on Debian 10 HOT 22
- der-parser 6.0 roadmap HOT 2
- handle context-specific tag incorrect HOT 9
- RUSTSEC-2020-0095: difference is unmaintained HOT 1
- [Question] In `BerObjectContent::BitString` what is the first elem of the pair? HOT 2
- Concatenate a relative OID onto a base OID HOT 3
- oid! macro assumes der_parser is in the current namespace HOT 4
- BerObject::as_pretty() drops tag class when printing Unknown contents
- Objects with private tags are parsed like universal tags
- Decoding ASN.1 signed integers always produces unsigned result HOT 8
- `BerObject::as_pretty()` prints universal tag names for non-universal classes HOT 5
- Enhancement: Re-export `rusticata-macros`
- `BerObjectHeader.structured` should be a `bool` HOT 1
- Inconsistent naming of parser functions
- How do I convert an `asn1_rs::Any` to a `BerObject`? HOT 4
- issues building with nightly due to proc-macro2 version usage?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from der-parser.