diff options
author | Björn Gustavsson <[email protected]> | 2015-01-12 12:25:52 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-01-12 12:25:52 +0100 |
commit | 8ee2d5f59f0e3ceee6895b5af41e563a29a22be2 (patch) | |
tree | e6a25247f76d72cefaacbce0d5affc1033e7adb0 /lib/asn1/test/asn1_SUITE_data/rfcs/MSMatchingRules.asn1 | |
parent | 71b35f78c12f31ae33cf51fd948c22483c77ff7c (diff) | |
parent | 17ec629959088f0b213a5559ab2e793e9ec0f124 (diff) | |
download | otp-8ee2d5f59f0e3ceee6895b5af41e563a29a22be2.tar.gz otp-8ee2d5f59f0e3ceee6895b5af41e563a29a22be2.tar.bz2 otp-8ee2d5f59f0e3ceee6895b5af41e563a29a22be2.zip |
Merge branch 'bjorn/asn1/rfc-5912/OTP-12395'
* bjorn/asn1/rfc-5912/OTP-12395: (79 commits)
Remove the old unused yecc-based parser
Improve error handling for illegal object definitions
Reimplement storeindb/2 to avoid excessive process communication
Remove useless fields in #state{}
Remove vestiges of obsolete {TypeName,Value} notation
Remove old error handling
Modernize the remaining cases
Further improve error handling for instatiation of parameterized types
asn1ct_tok: Clean up
Add a test case for EXTENSIBILITY IMPLIED
asn1ct_parser2: Remove expensive lookahead_assignment/1 function
asn1ct_parser2: Clean up error handling and reporting
asn1ct, asn1ct_parser2: Refactor the upper levels of error handling
asn1ct_parser2: Eliminate all uses of old-style 'catch'
asn1ct_parser2: Clean up parse_or/3 and parse_or_tag/3
asn1ct_parser2: Correct extraction of line number from token
asn1ct_parser2: Throw an {asn1_error,...} for *all* parse errors
asn1ct_parser2: Simplify parse_Type/1
asn1ct_parser2: Remove unsuccessful parsing of ValueSetFromObjects
Move checking of UNIQUE & DEFAULT error to asn1ct_check
...
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/rfcs/MSMatchingRules.asn1')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/rfcs/MSMatchingRules.asn1 | 225 |
1 files changed, 225 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/rfcs/MSMatchingRules.asn1 b/lib/asn1/test/asn1_SUITE_data/rfcs/MSMatchingRules.asn1 new file mode 100644 index 0000000000..37c894da86 --- /dev/null +++ b/lib/asn1/test/asn1_SUITE_data/rfcs/MSMatchingRules.asn1 @@ -0,0 +1,225 @@ +-- Module MSMatchingRules (X.413:06/1999) +MSMatchingRules {joint-iso-itu-t mhs(6) ms(4) modules(0) + general-matching-rules(5) version-1999(1)} DEFINITIONS ::= +BEGIN + +-- Prologue +--Exports everything +IMPORTS + -- MATCHING-RULE information object class and Directory matching-rules + MATCHING-RULE, objectIdentifierMatch + --== + FROM InformationFramework + bitStringMatch, booleanMatch, generalizedTimeMatch, + generalizedTimeOrderingMatch, integerMatch, integerOrderingMatch, + uTCTimeMatch, uTCTimeOrderingMatch + --== + FROM SelectedAttributeTypes + + -- Matching-rule Object Identifiers + id-mr-content-correlator-match, id-mr-content-identifier-match, + id-mr-ms-single-substring-list-elements-match, + id-mr-ms-single-substring-list-match, id-mr-ms-single-substring-match, + id-mr-ms-substrings-match, id-mr-msstring-case-sensitive-match, + id-mr-msstring-list-elements-match, id-mr-msstring-list-match, + id-mr-msstring-match, id-mr-msstring-ordering-match, + id-mr-mts-identifier-match, id-mr-oraddress-elements-match, + id-mr-oraddress-match, id-mr-oraddress-substring-elements-match, + id-mr-orname-elements-match, id-mr-orname-match, + id-mr-orname-single-element-match, id-mr-orname-substring-elements-match, + id-mr-redirection-or-dl-expansion-elements-match, + id-mr-redirection-or-dl-expansion-match, + id-mr-redirection-or-dl-expansion-single-element-match, + id-mr-redirection-or-dl-expansion-substring-elements-match, + id-mr-redirection-reason-match, id-mr-value-count-match + --== + FROM MSObjectIdentifiers {joint-iso-itu-t mhs(6) ms(4) modules(0) + object-identifiers(0) version-1999(1)} + -- MS upper bounds + ub-attribute-values, ub-msstring-match + --== + FROM MSUpperBounds {joint-iso-itu-t mhs(6) ms(4) modules(0) upper-bounds(4) + version-1994(0)} + -- MTS abstract service + ContentCorrelator, ContentIdentifier, MTSIdentifier, ORAddress, + ORAddressAndOptionalDirectoryName, ORName, RedirectionReason + --== + FROM MTSAbstractService {joint-iso-itu-t mhs(6) mts(3) modules(0) + mts-abstract-service(1) version-1999(1)}; + +-- Matching rule table information object set +MatchingRuleTable MATCHING-RULE ::= + {GeneralMatchingRules | ContentSpecificMatchingRules} + +GeneralMatchingRules MATCHING-RULE ::= + {bitStringMatch | booleanMatch | contentIdentifierMatch | integerMatch | + integerOrderingMatch | mSStringCaseSensitiveMatch | objectIdentifierMatch | + oRNameMatch | uTCTimeMatch | uTCTimeOrderingMatch, + ... -- 1994 extension additions --, contentCorrelatorMatch | + generalizedTimeMatch | generalizedTimeOrderingMatch | mSSingleSubstringMatch + | mSStringCaseSensitiveMatch | mSStringListElementsMatch | mSStringListMatch + | mSStringMatch | mSStringOrderingMatch | mSSingleSubstringListElementsMatch + | mSSingleSubstringListMatch | mSSubstringsMatch | mTSIdentifierMatch | + oRAddressElementsMatch | oRAddressMatch | oRAddressSubstringElementsMatch | + oRNameElementsMatch | oRNameMatch | oRNameSingleElementMatch | + oRNameSubstringElementsMatch | redirectionOrDLExpansionElementsMatch | + redirectionOrDLExpansionMatch | redirectionOrDLExpansionSingleElementMatch | + redirectionOrDLExpansionSubstringElementsMatch | redirectionReasonMatch | + valueCountMatch} + +ContentSpecificMatchingRules MATCHING-RULE ::= + {...} + +-- MS String assertion-syntax +MSString{INTEGER:maxSize} ::= CHOICE { + printable PrintableString(SIZE (1..maxSize)), + teletex TeletexString(SIZE (1..maxSize)), + general GeneralString(SIZE (1..maxSize)), + universal UniversalString(SIZE (1..maxSize)), + bmp BMPString(SIZE (1..maxSize)) +} + +-- String matching-rules +mSStringMatch MATCHING-RULE ::= { + SYNTAX MSString {ub-msstring-match} + ID id-mr-msstring-match +} + +mSStringOrderingMatch MATCHING-RULE ::= { + SYNTAX MSString {ub-msstring-match} + ID id-mr-msstring-ordering-match +} + +mSSubstringsMatch MATCHING-RULE ::= { + SYNTAX SubstringAssertion + ID id-mr-ms-substrings-match +} + +SubstringAssertion ::= + SEQUENCE OF + CHOICE {initial [0] MSString{ub-msstring-match}, + any [1] MSString{ub-msstring-match}, + final [2] MSString{ub-msstring-match}} + +-- at most one initial and one final component +mSSingleSubstringMatch MATCHING-RULE ::= { + SYNTAX MSString {ub-msstring-match} + ID id-mr-ms-single-substring-match +} + +mSStringCaseSensitiveMatch MATCHING-RULE ::= { + SYNTAX MSString {ub-msstring-match} + ID id-mr-msstring-case-sensitive-match +} + +mSStringListMatch MATCHING-RULE ::= { + SYNTAX SEQUENCE OF MSString{ub-msstring-match} + ID id-mr-msstring-list-match +} + +mSStringListElementsMatch MATCHING-RULE ::= { + SYNTAX SEQUENCE OF MSString{ub-msstring-match} + ID id-mr-msstring-list-elements-match +} + +mSSingleSubstringListMatch MATCHING-RULE ::= { + SYNTAX SEQUENCE OF MSString{ub-msstring-match} + ID id-mr-ms-single-substring-list-match +} + +mSSingleSubstringListElementsMatch MATCHING-RULE ::= { + SYNTAX SEQUENCE OF MSString{ub-msstring-match} + ID id-mr-ms-single-substring-list-elements-match +} + +-- Syntax-based matching-rule +valueCountMatch MATCHING-RULE ::= { + SYNTAX INTEGER(1..ub-attribute-values) + ID id-mr-value-count-match +} + +-- Matching-rules for complex Message Store attributes +-- OR-address matching-rules +oRAddressMatch MATCHING-RULE ::= { + SYNTAX ORAddress + ID id-mr-oraddress-match +} + +oRAddressElementsMatch MATCHING-RULE ::= { + SYNTAX ORAddress + ID id-mr-oraddress-elements-match +} + +oRAddressSubstringElementsMatch MATCHING-RULE ::= { + SYNTAX ORAddress + ID id-mr-oraddress-substring-elements-match +} + +-- OR-name matching-rules +oRNameMatch MATCHING-RULE ::= {SYNTAX ORName + ID id-mr-orname-match +} + +oRNameElementsMatch MATCHING-RULE ::= { + SYNTAX ORName + ID id-mr-orname-elements-match +} + +oRNameSubstringElementsMatch MATCHING-RULE ::= { + SYNTAX ORName + ID id-mr-orname-substring-elements-match +} + +oRNameSingleElementMatch MATCHING-RULE ::= { + SYNTAX MSString {ub-msstring-match} + ID id-mr-orname-single-element-match +} + +-- Redirection or DL-expansion matching rules +redirectionOrDLExpansionMatch MATCHING-RULE ::= { + SYNTAX ORAddressAndOptionalDirectoryName + ID id-mr-redirection-or-dl-expansion-match +} + +redirectionOrDLExpansionElementsMatch MATCHING-RULE ::= { + SYNTAX ORAddressAndOptionalDirectoryName + ID id-mr-redirection-or-dl-expansion-elements-match +} + +redirectionOrDLExpansionSingleElementMatch MATCHING-RULE ::= { + SYNTAX MSString {ub-msstring-match} + ID id-mr-redirection-or-dl-expansion-single-element-match +} + +redirectionOrDLExpansionSubstringElementsMatch MATCHING-RULE ::= { + SYNTAX ORAddressAndOptionalDirectoryName + ID id-mr-redirection-or-dl-expansion-substring-elements-match +} + +redirectionReasonMatch MATCHING-RULE ::= { + SYNTAX RedirectionReason + ID id-mr-redirection-reason-match +} + +-- MTS-identifier matching rule +mTSIdentifierMatch MATCHING-RULE ::= { + SYNTAX MTSIdentifier + ID id-mr-mts-identifier-match +} + +-- Content-correlator matching rule +contentCorrelatorMatch MATCHING-RULE ::= { + SYNTAX ContentCorrelator + ID id-mr-content-correlator-match +} + +-- Content-identifier matching rule +contentIdentifierMatch MATCHING-RULE ::= { + SYNTAX ContentIdentifier + ID id-mr-content-identifier-match +} + +END -- of MSMatchingRules + +-- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D + |