【发布时间】:2015-04-17 02:38:30
【问题描述】:
我需要从我的示例 ASN1 编译并生成一个 .DER 文件
BCAS DEFINITIONS ::= BEGIN
BBCard ::= SEQUENCE {
name IA5String (SIZE (1..60)),
team IA5String (SIZE (1..60)),
age INTEGER (1..100),
position IA5String (SIZE (1..60)),
handedness ENUMERATED
{left-handed(0), right-handed(1), ambidextrous(2)},
batting-average REAL
}
myCard BBCard ::= {
name "Casey",
team "Mudville Nine",
age 32,
position "left field",
handedness ambidextrous,
batting-average {mantissa 250, base 10, exponent -3}
}
END
我不知道怎么做,我尝试asn1c命令,但是这个编译C/C++。
请帮忙。
【问题讨论】: