Added cookie extension support + enhance extension parsing
Add support for TLS cookie extension
This adds support for TLS cookie extension used during the handshake (Hello retry request + Client Hello). In addition that optimizes various code paths in the extension handling.
Checklist
-
Code modified for Cookie extension -
Add support for extensions which are server-only (cookie is one of them) -
Provide a simple API for storing data and retrieving data per extension -
Eliminate loops when associating/retrieving data to/from extensions -
Test suite updated with functionality tests
Resolves #218 (closed)
Edited by Nikos Mavrogiannopoulos