asn.1/pEp.asn1
author Volker Birk <vb@pep-project.org>
Fri, 29 Jul 2016 12:09:04 +0200
branchkeysync
changeset 940 5f0a9d0f0ecd
parent 908 f3dd95d4315f
child 951 dec407deb10e
permissions -rw-r--r--
switching to full list of identities
     1 PEP
     2     { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) basic(0) }
     3 
     4 DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
     5 
     6 BEGIN
     7 
     8 EXPORTS Identity, IdentityList, Header;
     9 
    10 major-version INTEGER ::= 1
    11 minor-version INTEGER ::= 0
    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    DEFAULT "en"
    24 }
    25 
    26 IdentityList ::= SEQUENCE OF Identity
    27 
    28 Version ::= SEQUENCE {
    29     major       INTEGER (0..255) DEFAULT major-version,
    30     minor       INTEGER (0..255) DEFAULT minor-version
    31 }
    32 
    33 Header ::= SEQUENCE {
    34     version     Version,
    35     sequence    INTEGER
    36 }
    37 
    38 END
    39