floof/asn1/FloofProtocol.asn1
Alain Zscheile c48367ff09 send public key with every message
this is more efficient and solves key distribution concerns
2022-11-26 23:41:56 +01:00

76 lines
1.3 KiB
Groff

FloofProtocol { 2 25 187636631533261907981725980838781846034 }
DEFINITIONS EXPLICIT TAGS ::= BEGIN
Signature ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
key OCTET STRING,
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 {
-- message topic --
topic RDNSequence,
-- message attributes --
attrs SET OF RelativeDistinguishedName,
-- message severity --
severity Severity,
data OCTET STRING
}
XferBlob ::= SEQUENCE {
-- message max remaining hops
ttl INTEGER (0..255),
-- 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,
ids SET OF OCTET STRING
}
ProtoMessage ::= CHOICE {
session [0] SessionModify,
summary [1] Summary,
xfer [2] XferBlob
}
END