asn.1/pEp.asn1
author Volker Birk <vb@pep-project.org>
Mon, 18 Jul 2016 12:42:11 +0200
changeset 908 f3dd95d4315f
parent 907 8f5cca5bfa2d
child 940 5f0a9d0f0ecd
permissions -rw-r--r--
limit size of key attachements and their number per mail for import
vb@633
     1
PEP
vb@908
     2
    { iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) basic(0) }
vb@633
     3
vb@633
     4
DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
vb@633
     5
vb@592
     6
BEGIN
vb@592
     7
vb@633
     8
EXPORTS Identity, KeyList, Header;
vb@633
     9
vb@633
    10
major-version INTEGER ::= 1
vb@633
    11
minor-version INTEGER ::= 0
vb@633
    12
vb@648
    13
ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
vb@633
    14
Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))
vb@647
    15
Hash ::= Hex(SIZE(1..128)) -- SHA1 to SHA512 in hex
vb@633
    16
vb@592
    17
Identity ::= SEQUENCE {
vb@633
    18
    address     UTF8String  (SIZE(1..1024)) OPTIONAL,
vb@633
    19
    fpr         Hash,
vb@633
    20
    user-id     UTF8String  (SIZE(1..1024)) OPTIONAL,
vb@633
    21
    username    UTF8String  (SIZE(1..1024)) OPTIONAL,
vb@633
    22
    comm-type   INTEGER     (0..255) OPTIONAL,
vb@648
    23
    lang        ISO639-1    DEFAULT "en"
vb@592
    24
}
vb@592
    25
vb@633
    26
KeyList ::= SEQUENCE OF Hash
vb@592
    27
vb@593
    28
Version ::= SEQUENCE {
vb@633
    29
    major       INTEGER (0..255) DEFAULT major-version,
vb@633
    30
    minor       INTEGER (0..255) DEFAULT minor-version
vb@593
    31
}
vb@593
    32
vb@595
    33
Header ::= SEQUENCE {
vb@595
    34
    version     Version,
vb@631
    35
    sequence    INTEGER
vb@595
    36
}
vb@595
    37
vb@592
    38
END
vb@592
    39