Hi Tirthankar,
I am afraid you have mailed to the wrong place. This mailing list is intended for questions or comments regarding ASN.1 in general, not for qusetions that are specific to the use of one particular tool.
You should generally address all tool-specific questions to the vendors of those tools (OSS in this case, it seems). This is particularly the case here, where you seem to be wanting some tailoring of the C mapping that is highly tool-specific (there are no Standards for such mappings).
Thanks.
John L
[EMAIL PROTECTED] wrote:
Hi,
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.
Thanks,
Tirthankar Saha Senior Software Engineer Hughes Software Systems +91-124-26346666, #3212
*********************** HSS-Unclassified ***********************
"Please note: The email domain of Hughes Software Systems Ltd. has been changed to "hssworld.com" from hss.hns.com"
"DISCLAIMER: This message is proprietary to Hughes Software Systems Limited (HSS) and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. HSS accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
------------------------------------------------------------------------
_______________________________________________ ASN1 mailing list [EMAIL PROTECTED] http://lists.asn1.org/mailman/listinfo/asn1
-- Prof John Larmouth Larmouth T&PDS Ltd (Training and Protocol Development Services Ltd) 1 Blueberry Road Bowdon [EMAIL PROTECTED] Cheshire WA14 3LS England Tel: +44 161 928 1605 Fax: +44 161 928 8069
_______________________________________________ ASN1 mailing list [EMAIL PROTECTED] http://lists.asn1.org/mailman/listinfo/asn1
