Potential buffer-overflow for ssl_read_record()
Fixed potential negative value misinterpretation in load_file()
(cherry picked from commit 42c3ccf36e86972bff3a74c1e74c11311e6a7af0)

Conflicts:
	library/x509parse.c
Fixed potential memory leak when failing to resume a session

Conflicts:
	ChangeLog
	library/ssl_tls.c
Fixed potential heap buffer overflow on large hostname setting
(cherry picked from commit 75c1a6f97c9b25b71bcc95b158bc673f6db04400)

Conflicts:
	library/ssl_tls.c
Fixed potential file descriptor leaks
Prepped for 1.1.8 release
Fixed release date for 1.1.8