Refactoring
Move the common notifyHandshakeComplete method into TlsPeer
Call notifyHandshakeComplete via the peer interface
Refactoring
Cleanup state after handshake
Store the server certificate in a field
Add check that server status_request extension_data is empty (RFC 3546)
Factor out a method for checking for empty extension_data
Check that any server session_ticket extension_data is empty
Make fields protected
Throw internal_error for sends exceeding limit
Backport of recent changes
Javadoc
Add methods to check that arguments are in the right range for their TLS
type
Allow checks/writes of int as uint8
Add checks to all writeOpaque methods
Add missing writeUint48 method
Fix casts in unused writeUint64 method
Refactoring
Add checks on various lengths to make sure they aren't overflowing their
type
Refactor use of the ByteQueue
Check for empty non-application_data records in RecordStream
Move common methods into TlsPeer