summaryrefslogtreecommitdiff
path: root/src/tag.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2017-07-02 22:42:15 -0500
committerStuart Stock <stuart@int08h.com>2017-07-02 22:42:15 -0500
commitd1cadbd16107a63053a9ddd0d2c495a1f385196c (patch)
tree412775f87eb787aad1da009cb850823710339a38 /src/tag.rs
parent18f8fba31be0fd1f41632064d1868e9f6a807bd4 (diff)
downloadroughenough-d1cadbd16107a63053a9ddd0d2c495a1f385196c.zip
first version of working server
Diffstat (limited to 'src/tag.rs')
-rw-r--r--src/tag.rs18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/tag.rs b/src/tag.rs
index 4e3a8f1..56cfba2 100644
--- a/src/tag.rs
+++ b/src/tag.rs
@@ -4,9 +4,21 @@
pub enum Tag {
// Enforcement of the "tags in strictly increasing order" rule is done using the
// little-endian encoding of the ASCII tag value; e.g. 'SIG\x00' is 0x00474953 and
- // 'NONC' is 0x434e4f4e.
-
- SIG, NONC, DELE, PATH, RADI, PUBK, MIDP, SREP, MINT, ROOT, CERT, MAXT, INDX, PAD
+ // 'NONC' is 0x434e4f4e.
+ SIG,
+ NONC,
+ DELE,
+ PATH,
+ RADI,
+ PUBK,
+ MIDP,
+ SREP,
+ MINT,
+ ROOT,
+ CERT,
+ MAXT,
+ INDX,
+ PAD,
}
static PAD_VALUE: [u8; 4] = [b'P', b'A', b'D', 0xff];