⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ospasn1parse.c

📁 mgcp协议源代码。支持多种编码:g711
💻 C
📖 第 1 页 / 共 5 页
字号:
}; static OSPTASN1PARSETABLE ospgParseTable_Validity[] ={    {"Validity",            OSPC_TAG_TYPE_SEQUENCE,                                     OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"notBefore",           OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_UTCTIME,       0x1, 1, 1, 0, 0},    {"notAfter",            OSPC_TAG_TYPE_DERIVED,                                 OSPEPTID_UTCTIME,       0x2, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_Time[] ={    {"Time",                OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_UTCTIME,       0x0, 1, 1, 0, 0},    {OSPC_OSNULL}    /* This definition is strange because Time is a CHOICE of RDNSequence.  Choice does not generate an    element. Special handling at beginning of element parse to handle parse tables with first entry of Type    Tag "CONSTRUCTED" to have it immediately parse new element. */}; static OSPTASN1PARSETABLE ospgParseTable_UTCTime[] = {    {"UTCTime",             OSPC_TAG_TYPE_UTCTIME,                                  OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {OSPC_OSNULL}    /* This one is a little strange because UTCTIME is a named type as well as a primitive type.      Made it a named type as well so that the Time choice would have someplace to go. */}; static OSPTASN1PARSETABLE ospgParseTable_SubjPubKeyInfo[] ={    {"SubjPubKeyInfo",  OSPC_TAG_TYPE_SEQUENCE,                                     OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"algorithm",       OSPC_TAG_TYPE_DERIVED,                                      OSPEPTID_DERALGORITHMID,0x1, 1, 1, 0, 0},    {"subjPubKey",      OSPC_TAG_TYPE_BIT_STRING,                                   OSPEPTID_NOTDEFINED,    0x2, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_IssuerUniqueId[] ={    {"IssuerUniqueId",  OSPM_TAG_TYPE_IMPLICIT_TAG(1),                                OSPEPTID_NOTDEFINED,    0x0, 0, 1, 0, 1},    {"issuerUniqueId",      OSPC_TAG_TYPE_DERIVED,                                OSPEPTID_UNIQUEID,      0x1, 0, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_SubjectUniqueId[] ={    {"SubjectUniqueId",     OSPM_TAG_TYPE_IMPLICIT_TAG(2),                                OSPEPTID_NOTDEFINED,    0x0, 0, 1, 0, 2},    {"subjectUniqueId",     OSPC_TAG_TYPE_DERIVED,                                OSPEPTID_UNIQUEID,      0x1, 0, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_UniqueId[] ={    {"UniqueId",            OSPC_TAG_TYPE_BIT_STRING,                                   OSPEPTID_NOTDEFINED,    0x0, 0, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_Explicit_Extensions[] ={    {"ExplicitExtensions",  OSPM_TAG_TYPE_EXPLICIT_TAG(3),                                  OSPEPTID_NOTDEFINED,    0x0, 0, 1, 0, 3},    {"explicitExtensions",  OSPC_TAG_TYPE_DERIVED,                                      OSPEPTID_EXTENSION,     0x1, 1, 0xff, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_Extensions[] ={    {"Extensions",          OSPC_TAG_TYPE_SEQUENCE,                                     OSPEPTID_NOTDEFINED,    0x0, 0, 1, 0, 0},    {"extension",           OSPC_TAG_TYPE_DERIVED,                                      OSPEPTID_EXTENSION,     0x1, 1, 0xff, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_Extension[] =    {    {"Extension",           OSPC_TAG_TYPE_SEQUENCE,                                     OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"extnID",              OSPC_TAG_TYPE_OBJECT_IDENTIFIER,                                OSPEPTID_NOTDEFINED,    0x1, 1, 1, 0, 0},    {"critical",            OSPC_TAG_TYPE_BOOLEAN,                                      OSPEPTID_NOTDEFINED,    0x2, 1, 1, 0, 0},    {"extnValue",           OSPC_TAG_TYPE_OCTET_STRING,                                 OSPEPTID_NOTDEFINED,    0x3, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_ContentInfo_Data[] ={    {"ContentInfo",         OSPC_TAG_TYPE_SEQUENCE,                                     OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"contentType",         OSPC_TAG_TYPE_OBJECT_IDENTIFIER,                                OSPEPTID_NOTDEFINED,    0x1, 1, 1, 0, 0},    {"data",                OSPC_TAG_TYPE_DERIVED,                                      OSPEPTID_EXPLICIT_DATA, 0x2, 0, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_ContentInfo_SignedData[] ={    {"ContentInfo",         OSPC_TAG_TYPE_SEQUENCE,                                     OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"contentType",         OSPC_TAG_TYPE_OBJECT_IDENTIFIER,                                OSPEPTID_NOTDEFINED,    0x1, 1, 1, 0, 0},    {"signedData",          OSPC_TAG_TYPE_DERIVED,                                      OSPEPTID_EXPLICIT_SIGNEDDATA,                                                           0x2, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_Explicit_Data[] ={    {"ExplicitData",            OSPM_TAG_TYPE_EXPLICIT_TAG(0),                                  OSPEPTID_NOTDEFINED,    0x0, 0, 1, 0, 0},    {"explicitData",            OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_DATA,          0x1, 0, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_Explicit_SignedData[] ={    {"ExplicitSignedData",      OSPM_TAG_TYPE_EXPLICIT_TAG(0),                                  OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"explicitSignedData",      OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_SIGNEDDATA,    0x1, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_Data[] ={    {"Data",                OSPC_TAG_TYPE_OCTET_STRING,                                 OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_SignedData[] ={    {"SignedData",          OSPC_TAG_TYPE_SEQUENCE,                                 OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"version",             OSPC_TAG_TYPE_INTEGER,                                  OSPEPTID_NOTDEFINED,    0x1, 1, 1, 0, 0},    {"digestAlgorithms",    OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_DIGESTALGORITHMS,                                                        0x2, 1, 1, 0, 0},    {"contentInfo",         OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_CONTENTINFO_DATA,                                                          0x3, 1, 1, 0, 0},    {"certificates",        OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_CERTIFICATES,                                                          0x4, 1, 1, 0, 0},    {"crls",                OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_CERTREVLISTS,  0x5, 0, 1, 0, 0},    {"signerInfos",         OSPC_TAG_TYPE_DERIVED,                                OSPEPTID_SIGNERINFOS,   0x6, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_DigestAlgorithms[] ={    {"DigestAlgorithms",    OSPC_TAG_TYPE_SET,                                 OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"digestAlgorithmId",   OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_DERALGORITHMID,0x1, 1, 0xff, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_Certificates[] ={    {"Certificates",        OSPM_TAG_TYPE_IMPLICIT_TAG(0),                                 OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"certificate",         OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_CERTIFICATE,   0x1, 1, 0xff, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_CertRevLists[] ={    {"CertRevLists",        OSPM_TAG_TYPE_IMPLICIT_TAG(1),                                 OSPEPTID_NOTDEFINED,    0x0, 0, 1, 0, 1},    {"certRevList",         OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_CERTREVLIST,   0x1, 1, 0xff, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_CertRevList[] ={    {"CertRevList",         OSPC_TAG_TYPE_DER_FORMAT,                                 OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_SignerInfos[] ={    {"SignerInfos",         OSPC_TAG_TYPE_SET,                                 OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"signerInfo",          OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_SIGNERINFO,    0x1, 1, 0xff, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_SignerInfo[] ={    {"SignerInfo",          OSPC_TAG_TYPE_SEQUENCE,                                 OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"version",             OSPC_TAG_TYPE_INTEGER,                                  OSPEPTID_NOTDEFINED,    0x1, 1, 1, 0, 0},    {"issuerAndSerNum",     OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_ISSUERANDSERNUM,                                                        0x2, 1, 1, 0, 0},    {"digestAlgorithm",     OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_DERALGORITHMID,0x3, 1, 1, 0, 0},    {"authAttributes",      OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_AUTHATTRIBUTES,                                                            0x4, 0, 1, 1, 0},    {"digEncryptAlgorithm", OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_DERALGORITHMID,0x5, 1, 1, 0, 0},    {"encryptedDigest",     OSPC_TAG_TYPE_DERIVED,                                OSPEPTID_ENCRYPTEDDIGEST,                                                        0x6, 1, 1, 0, 0},    {"unauthAttributes",    OSPC_TAG_TYPE_DERIVED,                                OSPEPTID_UNAUTHATTRIBUTES,                                                          0x7, 0, 1, 1, 1},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_IssuerAndSerNum[] ={    {"IssuerAndSerNum",     OSPC_TAG_TYPE_SEQUENCE,                                 OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"issuer",              OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_NAME,          0x1, 1, 1, 0, 0},    {"serialNumber",        OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_CERTSERIALNUM, 0x2, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_AuthAttributes[] ={    {"AuthenticatedAttributes",OSPM_TAG_TYPE_IMPLICIT_TAG(0),                                 OSPEPTID_NOTDEFINED,    0x0, 0, 1, 0, 0},    {"authenticatedAttribute",OSPC_TAG_TYPE_DERIVED,                                    OSPEPTID_ATTRTYPEANDVAL,0x1, 1, 0xff, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_UnauthAttributes[] ={    {"UnauthenticatedAttributes",OSPM_TAG_TYPE_IMPLICIT_TAG(1),                                 OSPEPTID_NOTDEFINED,    0x0, 0, 1, 0, 0},    {"unauthenticatedAttribute",OSPC_TAG_TYPE_DERIVED,                                  OSPEPTID_ATTRTYPEANDVAL,0x1, 1, 0xff, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_EncryptedDigest[] ={    {"EncryptedDigest",     OSPC_TAG_TYPE_OCTET_STRING,                                 OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_DigestInfo[] ={    {"DigestInfo",          OSPC_TAG_TYPE_SEQUENCE,                                     OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"digestAlgorithm",     OSPC_TAG_TYPE_DER_FORMAT,                                       OSPEPTID_NOTDEFINED,    0x1, 1, 1, 0, 0},    {"digest",              OSPC_TAG_TYPE_OCTET_STRING,                                     OSPEPTID_NOTDEFINED,    0x2, 1, 1, 0, 0},    {OSPC_OSNULL}}; static OSPTASN1PARSETABLE ospgParseTable_AlgorithmId[] ={    {"AlgorithmId",         OSPC_TAG_TYPE_SEQUENCE,                                     OSPEPTID_NOTDEFINED,    0x0, 1, 1, 0, 0},    {"algorithmOID",        OSPC_TAG_TYPE_OBJECT_IDENTIFIER,                                        OSPEPTID_NOTDEFINED,    0x1, 1, 1, 0, 0},

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -