ASN.1 文件无效?
我对 ASN.1 有点陌生,所以我不知道我是否有无效文件,或者我是否只是不知道我在做什么。
我找到了一个用于解析 H245 消息的 ASN 文件 此处。有很多“...”部分似乎破坏了我正在使用的编译器(BinaryNotes)。如果我删除“...”条目,我就可以编译它。这是我应该做的吗?
我在解码时遇到其他问题,我想确保这不是这些问题的原因。
I'm kind of new to ASN.1, so I don't know if I have invalid files or if I just don't know what I'm doing.
I've found an ASN file for parsing H245 messages here. There are a lot of "..." sections that appear to break the compiler I'm using (BinaryNotes). If I remove the "..." entries, I can get it to compile. Is that what I'm supposed to do?
I'm running into other problems when decoding and I'd like to make sure this isn't the cause of those issues.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“...”表示该结构(序列、选择等)可以在未来版本中进行扩展,即可以在“...”之后添加更多字段。即使插入了这些附加字段,ASN.1 解码器也必须能够成功读取数据。允许忽略新字段。
您正在处理的 ASN 文件已经使用了扩展。它不再是版本 1,因为某些地方的“...”后面有字段。
删除“...”是一个短期解决方案。当结构再次扩展时,您将遇到问题,因为您的解码器可能会遇到新字段。
The "..." indicates that the structure (sequence, choice etc.) can be expanded in a future version, i.e. more fields can be added after the "...". The ASN.1 decoder must be able to successfully read the data even if these additional fields are inserted. It is allowed to ignore the new fields.
The ASN file you are processing has already made use of the expansion. It is no longer version 1 as there are fields after the "..." in certain places.
Removing the "..." is a short-term solution. You will run into problems when the structures are expanded again because your decoder is likely to stumble over the new fields.