floof/asn1/FloofProtocol.asn1
2022-11-24 16:30:14 +01:00

81 lines
1.4 KiB
Groff

FloofProtocol { 2 25 187636631533261907981725980838781846034 }
DEFINITIONS EXPLICIT TAGS ::= BEGIN
ActId ::= OCTET STRING (SIZE(16..1024))
Signature ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
value OCTET STRING
}
Severity ::= ENUMERATED {
emergency (0),
alert (1),
critical (2),
error (3),
warning (4),
notice (5),
info (6),
debug (7),
trace (8)
}
RelativeDistinguishedName ::= SEQUENCE {
type OBJECT IDENTIFIER,
value ANY
}
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
XferInner ::= SEQUENCE {
id ActId,
-- message topic --
topic RDNSequence,
-- message attributes --
attrs SET OF RelativeDistinguishedName,
-- message severity --
severity Severity,
data OCTET STRING
}
XferBlob ::= SEQUENCE {
-- source system name --
source RDNSequence,
-- message time-to-live eol timestamp in seconds since epoch
ttl INTEGER (0..MAX),
-- message markers (e.g. review data and such)
markers SET OF RelativeDistinguishedName,
-- signature of *data*
signature Signature,
data OCTET STRING
}
SessionModify ::= CHOICE {
attach [0] OCTET STRING
}
SummaryDirection ::= ENUMERATED {
pull (0),
drop (1),
requestpull (2)
}
Summary ::= SEQUENCE {
direction SummaryDirection,
id ActId
}
ProtoMessage ::= CHOICE {
session [0] SessionModify,
summary [1] Summary,
xfer [2] XferBlob
}
END