asn.1/pEp.asn1
branchsync
changeset 2829 e444c3c960bb
parent 1513 e7f7e42385b5
child 4253 64ff1db68934
     1.1 --- a/asn.1/pEp.asn1	Tue Aug 07 14:24:15 2018 +0200
     1.2 +++ b/asn.1/pEp.asn1	Tue Aug 07 17:16:03 2018 +0200
     1.3 @@ -1,5 +1,9 @@
     1.4 -/* This file is under GNU General Public License 3.0 */
     1.5 -/* see LICENSE.txt */
     1.6 +-- This file is under BSD License 2.0
     1.7 +
     1.8 +-- Sync protocol for p≡p
     1.9 +-- Copyright (c) 2016, 2017 p≡p foundation
    1.10 +
    1.11 +-- Written by Volker Birk
    1.12  
    1.13  PEP
    1.14      { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) basic(0) }
    1.15 @@ -8,27 +12,24 @@
    1.16  
    1.17  BEGIN
    1.18  
    1.19 -EXPORTS Version, Identity, IdentityList;
    1.20 +EXPORTS Identity, IdentityList, TID, Hash;
    1.21  
    1.22  ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
    1.23  Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))
    1.24 -Hash ::= Hex(SIZE(1..128)) -- SHA1 to SHA512 in hex
    1.25 +Hash ::= Hex(SIZE(16..128)) -- 32bit Key ID to SHA512 in hex
    1.26 +PString ::= UTF8String  (SIZE(1..1024))
    1.27 +TID ::= OCTET STRING (SIZE(16)) -- UUID version 4 variant 1
    1.28  
    1.29  Identity ::= SEQUENCE {
    1.30 -    address     UTF8String  (SIZE(1..1024)) OPTIONAL,
    1.31 +    address     PString,
    1.32      fpr         Hash,
    1.33 -    user-id     UTF8String  (SIZE(1..1024)) OPTIONAL,
    1.34 -    username    UTF8String  (SIZE(1..1024)) OPTIONAL,
    1.35 -    comm-type   INTEGER     (0..255) OPTIONAL,
    1.36 +    user-id     PString,
    1.37 +    username    PString,
    1.38 +    comm-type   INTEGER (0..255),
    1.39      lang        ISO639-1
    1.40  }
    1.41  
    1.42  IdentityList ::= SEQUENCE OF Identity
    1.43  
    1.44 -Version ::= SEQUENCE {
    1.45 -    major       INTEGER (0..255),
    1.46 -    minor       INTEGER (0..255)
    1.47 -}
    1.48 -
    1.49  END
    1.50