asn.1/pEp.asn1
author Roker <roker@pep-project.org>
Wed, 16 Sep 2020 18:14:33 +0200
changeset 5065 d6d23b414a93
parent 5001 b13214d32372
permissions -rw-r--r--
also "install" libpEpEngine.a into $PREFIX/lib
     1 -- This file is under BSD License 2.0
     2 
     3 -- Sync protocol for p≡p
     4 -- Copyright (c) 2016, 2010 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, Rating;
    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 Rating ::= ENUMERATED { 
    40     -- no color
    41 
    42     cannot-decrypt (1),
    43     have-no-key (2),
    44     unencrypted (3),
    45     unreliable (5),
    46 
    47     b0rken (-2),
    48 
    49     -- yellow
    50 
    51     reliable (6),
    52 
    53     -- green
    54 
    55     trusted (7),
    56     trusted-and-anonymized (8),
    57     fully-anonymous (9), 
    58 
    59     -- red
    60 
    61     mistrust (-1),
    62     under-attack (-3)
    63 }
    64 
    65 END
    66