asn.1/pEp.asn1
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Tue, 14 Jul 2020 17:26:55 +0200
changeset 4860 466bba56ce1f
parent 4253 64ff1db68934
permissions -rw-r--r--
Automatically bumped RC in source for future release. Next RC after this one will be 2.1.0-RC19 **if released**.
     1 -- This file is under BSD License 2.0
     2 
     3 -- Sync protocol for p≡p
     4 -- Copyright (c) 2016, 2017 p≡p foundation
     5 
     6 -- Written by Volker Birk
     7 
     8 PEP
     9     { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) basic(0) }
    10 
    11 DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
    12 
    13 BEGIN
    14 
    15 EXPORTS Identity, IdentityList, TID, Hash, Version;
    16 
    17 ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
    18 Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))
    19 Hash ::= Hex(SIZE(16..128)) -- 32bit Key ID to SHA512 in hex
    20 PString ::= UTF8String  (SIZE(1..1024))
    21 TID ::= OCTET STRING (SIZE(16)) -- UUID version 4 variant 1
    22 
    23 Identity ::= SEQUENCE {
    24     address     PString,
    25     fpr         Hash,
    26     user-id     PString,
    27     username    PString,
    28     comm-type   INTEGER (0..255),
    29     lang        ISO639-1
    30 }
    31 
    32 IdentityList ::= SEQUENCE OF Identity
    33 
    34 Version ::= SEQUENCE {
    35     major INTEGER (0..255) DEFAULT 1,
    36     minor INTEGER (0..255) DEFAULT 2
    37 }
    38 
    39 END
    40