Thread: asn.1

  1. #1
    Registered User
    Join Date
    May 2020
    Posts
    6

    Question asn.1

    Hi dears,

    I have a confuse with relation between C and asn.1
    the Telecom project which I've worked on it have .C/.h and .asn.1 files.
    is it right that we could derive structure in C from asn.1 file?
    and does this structures have the same name of the SEQUENCE in asn.1 with adding _t and _s using typedef ?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > I have a confuse with relation between C and asn.1
    There isn't one.

    C is a programming language.
    ASN.1 is an IDL - Interface Description Language ( ASN.1 - Wikipedia )

    To be specific:
    C is used for far more things than implementing ASN.1 encoders and decoders.
    You can implement ASN.1 encoders and decoders in any programming language that takes your fancy.

    > is it right that we could derive structure in C from asn.1 file?
    Yes, there are probably tools in your organisation to do just that.

    > and does this structures have the same name of the SEQUENCE in asn.1 with adding _t and _s using typedef ?
    No idea, it depends on what tool you use as to what naming convention they adopt.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Tags for this Thread