Discussion:
asn.1 anyone?
(too old to reply)
rayj00
2008-01-20 19:39:29 UTC
Permalink
I'm a newbie trying to use asn.1 for some tools I'd like to develop
for the H.323 protocols, as
well as other protocols. I have been able to compile h2250v6.asn using
asn1c. I'm not sure what that exactly gets me?

What I need to do is create H.225 messages, like the SETUP message and
have invalid contents, like missing fields, invalid fields, etc. Then
I need to send this SETUP to the system under test.

If you look at the Protos tool at :
http://www.ee.oulu.fi/research/ouspg/protos/testing/c07/h2250v4/index.html,
this is what I'd like to do. But I'm stuck on creating the test cases.

I know enough about programming to be dangerous....

Ideas?
h***@gmail.com
2008-01-21 03:42:42 UTC
Permalink
Post by rayj00
I'm a newbie trying to use asn.1 for some tools I'd like to develop
for the H.323 protocols, as
well as other protocols. I have been able to compile h2250v6.asn using
asn1c. I'm not sure what that exactly gets me?
What I need to do is create H.225 messages, like the SETUP message and
have invalid contents, like missing fields, invalid fields, etc. Then
I need to send this SETUP to the system under test.
If you look at the Protos tool at :http://www.ee.oulu.fi/research/ouspg/protos/testing/c07/h2250v4/index...,
this is what I'd like to do. But I'm stuck on creating the test cases.
I know enough about programming to be dangerous....
Ideas?
Hello there! :D

My knowledge is limited but might be useful for u ;)

Asn1c compile ASN.1 definition into source code. It will give you a
class that can be use to decode BER or DER raw data encoded using ASN.
1.

Roughly, what needed to be done is

ASN.1 compiler ---> generate encode/decode class ----> Write your own
code using the generated class ---> Compile to binaries ----> Use your
binaries to process (encode or decode) data

If I'm not mistaken ASN1C is only for decoding. From your post you
might need to encode too. The good news is there is a lot of ASN1
compiler beside ASN1C, you just need to search for it.

For instance there is SNACC which is very old and compile to C
classes. If your expertise is Java or .Net, then it will be easier for
you to find such tool that generate Java or C# classes.

Have fun!

Continue reading on narkive:
Loading...