asn.1/pEp.asn1
author Volker Birk <vb@pep.foundation>
Wed, 24 Aug 2016 00:30:50 +0200
branchkeysync
changeset 1077 d22b9d70370d
parent 1063 8f9c94812786
child 1513 e7f7e42385b5
permissions -rw-r--r--
...
     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 Version, Identity, IdentityList;
     9 
    10 ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
    11 Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))
    12 Hash ::= Hex(SIZE(1..128)) -- SHA1 to SHA512 in hex
    13 
    14 Identity ::= SEQUENCE {
    15     address     UTF8String  (SIZE(1..1024)) OPTIONAL,
    16     fpr         Hash,
    17     user-id     UTF8String  (SIZE(1..1024)) OPTIONAL,
    18     username    UTF8String  (SIZE(1..1024)) OPTIONAL,
    19     comm-type   INTEGER     (0..255) OPTIONAL,
    20     lang        ISO639-1
    21 }
    22 
    23 IdentityList ::= SEQUENCE OF Identity
    24 
    25 Version ::= SEQUENCE {
    26     major       INTEGER (0..255),
    27     minor       INTEGER (0..255)
    28 }
    29 
    30 END
    31