From d1cadbd16107a63053a9ddd0d2c495a1f385196c Mon Sep 17 00:00:00 2001 From: Stuart Stock Date: Sun, 2 Jul 2017 22:42:15 -0500 Subject: first version of working server --- src/tag.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/tag.rs') 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]; -- cgit v1.2.3