asn.1/pEp.asn1
author Volker Birk <vb@pep-project.org>
Wed, 27 Mar 2019 20:17:29 +0100
branchsync
changeset 3407 dabc9c3b13e6
parent 2829 e444c3c960bb
child 4253 64ff1db68934
permissions -rw-r--r--
adding param to deliverHandshakeResult
vb@2829
     1
-- This file is under BSD License 2.0
vb@2829
     2
vb@2829
     3
-- Sync protocol for p≡p
vb@2829
     4
-- Copyright (c) 2016, 2017 p≡p foundation
vb@2829
     5
vb@2829
     6
-- Written by Volker Birk
vb@1513
     7
vb@633
     8
PEP
vb@908
     9
    { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) basic(0) }
vb@633
    10
vb@633
    11
DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
vb@633
    12
vb@592
    13
BEGIN
vb@592
    14
vb@2829
    15
EXPORTS Identity, IdentityList, TID, Hash;
vb@633
    16
vb@648
    17
ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
vb@633
    18
Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))
vb@2829
    19
Hash ::= Hex(SIZE(16..128)) -- 32bit Key ID to SHA512 in hex
vb@2829
    20
PString ::= UTF8String  (SIZE(1..1024))
vb@2829
    21
TID ::= OCTET STRING (SIZE(16)) -- UUID version 4 variant 1
vb@633
    22
vb@592
    23
Identity ::= SEQUENCE {
vb@2829
    24
    address     PString,
vb@633
    25
    fpr         Hash,
vb@2829
    26
    user-id     PString,
vb@2829
    27
    username    PString,
vb@2829
    28
    comm-type   INTEGER (0..255),
vb@1077
    29
    lang        ISO639-1
vb@592
    30
}
vb@592
    31
vb@940
    32
IdentityList ::= SEQUENCE OF Identity
vb@592
    33
vb@592
    34
END
vb@592
    35