Add initial packet parsing code
authorMatt Caswell <matt@openssl.org>
Tue, 14 Apr 2015 16:01:29 +0000 (17:01 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 3 Aug 2015 10:01:42 +0000 (11:01 +0100)
commit7e729bb5a3ff1b940061045d1f83b7fc01d32b4b
treedee9f6134ad93abf4f5ac1c8629c20e28330513e
parentbb484020c3f22bcb76cc3d18b5965c8b132770dc
Add initial packet parsing code

Provide more robust (inline) functions to replace n2s, n2l, etc. These
functions do the same thing as the previous macros, but also keep track
of the amount of data remaining and return an error if we try to read more
data than we've got.

Reviewed-by: Tim Hudson <tjh@openssl.org>
ssl/Makefile
ssl/packet_locl.h [new file with mode: 0644]
ssl/ssl_locl.h
test/Makefile