Refine comment and prototype for sprintf_fn
Add extern "C" declaration to allow use of sslhaf in C++ applications
Initialise (memset 0) sslhaf_cfg_t object after its allocation
Replace a stray malloc call with a sslhaf_cfg_t.alloc_fn call