NOT_READY TODO: check return values
Remove format string warnings
Added function prototypes
SSLTLS WIP