asn.1/pEp.asn1
author Krista Bennett <krista@pep-project.org>
Wed, 07 Feb 2018 16:47:05 +0100
branchENGINE-250
changeset 2485 c2c187994495
parent 1513 e7f7e42385b5
child 2829 e444c3c960bb
permissions -rw-r--r--
Closing branch (not "brain", as I originally wrote...)
     1 /* This file is under GNU General Public License 3.0 */
     2 /* see LICENSE.txt */
     3 
     4 PEP
     5     { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) basic(0) }
     6 
     7 DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
     8 
     9 BEGIN
    10 
    11 EXPORTS Version, Identity, IdentityList;
    12 
    13 ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
    14 Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))
    15 Hash ::= Hex(SIZE(1..128)) -- SHA1 to SHA512 in hex
    16 
    17 Identity ::= SEQUENCE {
    18     address     UTF8String  (SIZE(1..1024)) OPTIONAL,
    19     fpr         Hash,
    20     user-id     UTF8String  (SIZE(1..1024)) OPTIONAL,
    21     username    UTF8String  (SIZE(1..1024)) OPTIONAL,
    22     comm-type   INTEGER     (0..255) OPTIONAL,
    23     lang        ISO639-1
    24 }
    25 
    26 IdentityList ::= SEQUENCE OF Identity
    27 
    28 Version ::= SEQUENCE {
    29     major       INTEGER (0..255),
    30     minor       INTEGER (0..255)
    31 }
    32 
    33 END
    34