📄 rules.c
字号:
NULL, NULL, NULL, TRUE,// FALSE, // Deepak: 17/Apr/2003 TRUE,// FALSE, // Deepak: 17/Apr/2003 TRUE,// FALSE, // Deepak: 17/Apr/2003 TRUE,// FALSE, // Deepak: 17/Apr/2003 TRUE // FALSE // Deepak: 17/Apr/2003 }, { BASICTYPE_MACRODEF, C_NO_TYPE, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, "NOT_NULL", "macroDef", NULL, NULL, NULL, NULL, FALSE, FALSE, FALSE, FALSE, FALSE }, { BASICTYPE_NUMERIC_STR, C_LIB, "NumericString", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncNumericString", "DecNumericString", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, { BASICTYPE_PRINTABLE_STR, C_LIB, "PrintableString", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncPrintableString", "DecPrintableString", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, { BASICTYPE_UNIVERSAL_STR, C_LIB, "UniversalString", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncUniversalString", "DecUniversalString", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, { BASICTYPE_IA5_STR, C_LIB, "IA5String", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncIA5String", "DecIA5String", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, { BASICTYPE_BMP_STR, C_LIB, "BMPString", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncBMPString", "DecBMPString", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, { BASICTYPE_UTF8_STR, C_LIB, "UTF8String", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncUTF8String", "DecUTF8String", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* UTCTime */ { BASICTYPE_UTCTIME, C_LIB, "UTCTime", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncUTCTime", "DecUTCTime", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* GeneralizedTime */ { BASICTYPE_GENERALIZEDTIME, C_LIB, "GeneralizedTime", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncGeneralizedTime", "DecGeneralizedTime", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* GraphicString */ { BASICTYPE_GRAPHIC_STR, C_LIB, "GraphicString", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncGraphicString", "DecGraphicString", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* VisibleString */ { BASICTYPE_VISIBLE_STR, C_LIB, "VisibleString", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncVisibleString", "DecVisibleString", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* GeneralString */ { BASICTYPE_GENERAL_STR, C_LIB, "GeneralString", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncGeneralString", "DecGeneralString", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* ObjectDescriptor */ { BASICTYPE_OBJECTDESCRIPTOR, C_LIB, "ObjectDescriptor", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncObjectDescriptor", "DecObjectDescriptor", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* VideotexString */ { BASICTYPE_VIDEOTEX_STR, C_LIB, "VideotexString", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncVideotexString", "DecVideotexString", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* TeletexString */ { BASICTYPE_T61_STR, C_LIB, "TeletexString", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncTeletexString", "DecTeletexString", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* EXTERNAL */ { BASICTYPE_EXTERNAL, C_LIB, "EXTERNAL", FALSE, TRUE, FALSE, TRUE, TRUE, TRUE, "NOT_NULL", "ext", "PrintEXTERNAL", "EncEXTERNAL", "DecEXTERNAL", "FreeEXTERNAL", TRUE, TRUE, TRUE, TRUE, TRUE }, /* REN -- 3 July 2003 -- This next type will need C back-end modifications Added to complete array */ { BASICTYPE_OCTETCONTAINING, C_LIB, "AsnOcts", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNOCTS_PRESENT", "octs", "PrintAsnOcts", "EncAsnOcts", "DecAsnOcts", "FreeAsnOcts", TRUE, TRUE, TRUE, TRUE, TRUE }, /* REN -- 3 July 2003 -- This next type will need C back-end modifications. Added to complete array */ { BASICTYPE_BITCONTAINING, C_LIB, "AsnBits", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNBITS_PRESENT", "bits", "PrintAsnBits", "EncAsnBits", "DecAsnBits", "FreeAsnBits", TRUE, TRUE, TRUE, TRUE, TRUE }, { BASICTYPE_RELATIVE_OID, C_LIB, "AsnRelativeOid", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNRELATIVEOID_PRESENT", "oid", "PrintAsnRelativeOid", "EncAsnRelativeOid", "DecAsnRelativeOid", "FreeAsnRelativeOid", TRUE, TRUE, TRUE, TRUE, TRUE }, { BASICTYPE_EXTENSION, C_LIB, "AsnExtension", FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, "ASNEXTENSION_PRESENT", "extension", "PrintAsnExtension", "EncAsnExtension", "DecAsnExtension", "FreeAsnExtension", TRUE, TRUE, TRUE, TRUE, TRUE }, // Deepak: 30/Nov/2002, read Note above { BASICTYPE_SEQUENCET, C_STRUCT, "struct", FALSE, TRUE, FALSE, TRUE, TRUE, TRUE, "NOT_NULL", "seq", NULL, NULL, NULL, NULL, TRUE, TRUE, TRUE, TRUE, TRUE }, { // Deepak: 11/Dec/2002 BASICTYPE_OBJECTCLASS, C_OBJECTCLASS, //C_NO_TYPE, "struct", //NULL, FALSE, // isPdu FALSE, // isEncDec FALSE, // isPtrForTypeDef TRUE, // TRUE, // isPtrForTypeRef TRUE, // FALSE, // isPtrInChoice TRUE, // FALSE, // isPtrForOpt; "NOT_NULL", "objectclass", NULL, NULL, NULL, NULL, FALSE, FALSE, FALSE, FALSE, TRUE }, //*/ { // Deepak: 04/Feb/2003 BASICTYPE_OBJECTCLASSFIELDTYPE, C_OBJECTCLASSFIELDTYPE, "AsnOcts", // 31/Mar/2003 NULL, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, "NOT_NULL", "octs", // 31/Mar/2003 "objectClassFieldType", "PrintAsnOcts", // 31/Mar/2003 NULL, "EncAsnOcts", // 31/Mar/2003 NULL, "DecAsnOcts", // 31/Mar/2003 NULL, "FreeAsnOcts", // 31/Mar/2003 NULL, TRUE, TRUE, TRUE, TRUE, TRUE } }};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -