Commit graph

31 commits

Author SHA1 Message Date
Marten Seemann
99d4e36a56 also make ParsePublicHeader public 2016-08-05 00:12:08 +07:00
Marten Seemann
8b845fada9 make PublicHeader public 2016-08-04 15:45:11 +07:00
Lucas Clemente
1712a7388f drop support for v30
fixes #213
2016-07-29 15:22:56 +02:00
Lucas Clemente
240946dfde replace version number literals with constants to make grepping easier 2016-06-03 11:09:48 +02:00
Lucas Clemente
1896003f42 count diversification nonce in public header length
fixes #161
2016-06-02 12:40:14 +02:00
Lucas Clemente
c6a9e7e575 implement diversification nonce writing in public header
ref #51
2016-05-20 23:13:55 +02:00
Marten Seemann
fb6d90b813 cosmetic changes in tests 2016-05-16 18:32:08 +07:00
Lucas Clemente
93c52a3414 fix support for version 30
fixes #101, ref #70
2016-05-15 19:58:34 +02:00
Lucas Clemente
0cb0ce8ad8 privatize parsePublicHeader
ref #60
2016-05-15 15:44:50 +02:00
Lucas Clemente
9cc4bb3ccf privatize publicHeader
ref #60
2016-05-15 15:44:14 +02:00
Marten Seemann
e345270e84 use ByteCount type for Frame, Packet and PublicHeader lengths 2016-05-10 23:40:22 +07:00
Marten Seemann
b05b52a2a8 determine the length of the PublicHeader
work towards #67
2016-05-10 21:33:05 +07:00
Marten Seemann
7169584ff9 implement sending of shortened packet numbers 2016-05-10 17:25:52 +07:00
Marten Seemann
476acc2966 fix PublicHeader of VersionNegotiation and PublicReset packets
fixes #71
2016-05-09 22:27:55 +07:00
Marten Seemann
7bf94df817 Revert "fix FlagByte in PublicHeader"
This reverts commit 44e19787f3.
2016-05-09 21:28:00 +07:00
Marten Seemann
44e19787f3 fix FlagByte in PublicHeader 2016-05-09 18:25:12 +07:00
Marten Seemann
bb807fa5bd implement sending of truncated ConnectionIDs 2016-05-06 21:53:21 +07:00
Marten Seemann
965addac79 better tests for PublicHeader 2016-05-06 21:15:57 +07:00
Lucas Clemente
d1d4dbde2c update public header parsing to version 33
refs #51
2016-05-05 00:54:29 +02:00
Lucas Clemente
b17d9a7e55 change public header to correctly state 48bit packet numbers 2016-04-21 17:02:15 +02:00
Lucas Clemente
6d9d9a1c29 send packet numbers with 6byte for simpler session tests 2016-04-20 17:13:06 +02:00
Lucas Clemente
b6c9c9b6a4 introduce protocol/version.go and remove big endian functions 2016-04-15 18:46:39 +02:00
Lucas Clemente
04921c29af introduce ConnectionID type 2016-04-14 19:39:49 +02:00
Lucas Clemente
49ccd0bb01 don't accept 0-byte connection IDs since we are a server 2016-04-14 17:56:31 +02:00
Lucas Clemente
3d767401d0 introduce PacketNumber type & protocol package 2016-04-14 10:29:21 +02:00
Marten Seemann
703aad12c0 make WritePublicHeader set the VersionFlag and the ResetFlag 2016-04-14 14:28:16 +07:00
Lucas Clemente
df96797e9c fix an error reading n-byte integers 2016-04-11 14:41:21 +02:00
Lucas Clemente
ab14684299 implement basic public header writing 2016-04-10 20:23:36 +02:00
Lucas Clemente
07f5daa7ba remove lengths from public header struct 2016-04-10 20:02:35 +02:00
Lucas Clemente
a29db728a3 improve public header tests 2016-04-07 11:19:50 +02:00
Lucas Clemente
cfccdaed9b add public header parser 2016-04-06 23:10:52 +02:00