From b2098f8f135300a988deee4ded7088484086827d Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Sun, 10 Apr 2016 16:34:05 +0200 Subject: [PATCH] add some more crypto message tags --- crypto_stream.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crypto_stream.go b/crypto_stream.go index 0f1bc4948..8dbad163e 100644 --- a/crypto_stream.go +++ b/crypto_stream.go @@ -13,6 +13,8 @@ type Tag uint32 const ( // TagCHLO is a client hello TagCHLO Tag = 'C' + 'H'<<8 + 'L'<<16 + 'O'<<24 + // TagREJ is a server hello rejection + TagREJ Tag = 'R' + 'E'<<8 + 'J'<<16 // TagPAD is padding TagPAD Tag = 'P' + 'A'<<8 + 'D'<<16 @@ -46,6 +48,15 @@ const ( TagCFCW Tag = 'C' + 'F'<<8 + 'C'<<16 + 'W'<<24 // TagSFCW is the initial stream flow control receive window. TagSFCW Tag = 'S' + 'F'<<8 + 'C'<<16 + 'W'<<24 + + // TagSCFG is the server config + TagSCFG Tag = 'S' + 'C'<<8 + 'F'<<16 + 'G'<<24 + // TagSTK is the source-address token + TagSTK Tag = 'S' + 'T'<<8 + 'K'<<16 + // TagSNO is the server nonce + TagSNO Tag = 'S' + 'N'<<8 + 'O'<<16 + // TagPROF is the server proof + TagPROF Tag = 'P' + 'R'<<8 + 'O'<<16 + 'F'<<24 ) var (