summaryrefslogtreecommitdiff
path: root/lib/dtls-sw.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: drop gnutls_uint64 usage as sequence numberDmitry Eremin-Solenikov2019-10-241-19/+1
| | | | | | | | GnuTLS is depending already on uint64_t being a properly defined type. So there is no need to have a special byte-array type for 8-byte integers. Use uint64_t instead, thus simplifying a code quite heavily. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Add const to several read-only packet sequence paramstmp-fix-coverityTim Rühsen2019-10-151-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Use https:// for www.gnu.org and www.example.comTim Rühsen2019-03-131-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Rename uint64 to gnutls_uint64 to avoid conflict with macOSDavid Caldwell2017-04-061-1/+1
| | | | Signed-off-by: David Caldwell <david@porkrind.org>
* several spacing fixes to keep syntax-check happyNikos Mavrogiannopoulos2016-09-111-1/+1
|
* Import DTLS sliding window validation from OpenConnect ESP codeDavid Woodhouse2016-09-021-46/+91
| | | | | | | | | | | In this implementation, the end of the sliding window is always advanced to the latest received packet, and we accept up to 64 packets before that one. We no longer refuse to accept packets because they are *too* far ahead of what we've already seen. Some of the test cases are fixed up accordingly. This matches the code in OpenConnect esp-seqno.c at commit 314ac65.
* dtls: ensure that the DTLS window doesn't get stalledNikos Mavrogiannopoulos2016-08-291-1/+9
| | | | | That is ensure that it is forwarded at least one place if more than 16 packets have been received since the first one.
* dtls: imported Fridolin's DTLS sliding window implementationNikos Mavrogiannopoulos2016-07-131-0/+105
This simplifies the current code, and reduces the memory needed.