[EMAIL PROTECTED] wrote:

We want to map the ASN BMPString construct to a C array.

e.g.
GatekeeperIdentifier        ::=        BMPString (SIZE(32))

We want this to mapped as:

typedef struct AsnH225_GatekeeperIdentifier {
    unsigned short  length;
    unsigned short  value[32];
} AsnH225_GatekeeperIdentifier;

However, it is getting mapped to the following

typedef struct AsnH225_GatekeeperIdentifier {
    unsigned short  length;
    unsigned short  *value;
} AsnH225_GatekeeperIdentifier;

We've tried various combinations of the OSS Compiler directives (e.g. VARYING, etc.) without any success. However, other ASN.1 character string constructs like IA5String etc. are correctly getting mapped to the array format as above. The pointer/dynamic array is not usable due to certain restrictions in our tools/legacy code.

Any ideas folks?

FYI, we're using OSS ASN1-C Compiler v6.0 on Solaris.

This mailing list if strictly for questions regarding ASN.1 in general. All messages pertaining to use of a specific ASN.1 compiler are to be addressed to the company that maintains that compiler.
--
Olivier DUBUISSON
France Telecom
Recherche & Developpement
R&D/MAPS/AMS - 22307 Lannion Cedex - France
t: +33 2 96 05 38 50 - f: +33 2 96 05 39 45 - http://asn1.elibel.tm.fr/



_______________________________________________ ASN1 mailing list [EMAIL PROTECTED] http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to